summaryrefslogtreecommitdiff
path: root/plugins/FavContacts/src/csocket.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-20 14:54:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-20 14:54:37 +0000
commit91d312baa652df4977bf1195053e28480970e20f (patch)
treea5d55eda73ccba6dd68f3a8711b4764fe6eb5ac6 /plugins/FavContacts/src/csocket.h
parent5163941eb4fcc1e90dcbda60e0a2496b55d36303 (diff)
support for the FavContacts's gadget
git-svn-id: http://svn.miranda-ng.org/main/trunk@9891 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FavContacts/src/csocket.h')
-rw-r--r--plugins/FavContacts/src/csocket.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/FavContacts/src/csocket.h b/plugins/FavContacts/src/csocket.h
new file mode 100644
index 0000000000..3fa1c87852
--- /dev/null
+++ b/plugins/FavContacts/src/csocket.h
@@ -0,0 +1,16 @@
+#ifndef csocket_h__
+#define csocket_h__
+
+class CSocket
+{
+protected:
+ SOCKET m_socket;
+
+public:
+ CSocket(SOCKET socket = INVALID_SOCKET): m_socket(socket) {}
+ int Recv(char *buf, int count);
+ int Send(char *buf, int count = -1);
+ void Close();
+};
+
+#endif // csocket_h__