diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-05-04 19:04:57 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-05-04 19:04:57 +0000 |
commit | 8007a659cd115857a71947cf6d309ab8e96895dc (patch) | |
tree | fe683f411ed91815a135dc70ee3a8c31299b3d38 /FavContacts/src/csocket.h | |
parent | bed6bee936ff79d32c08245f0fedaee9d839f76f (diff) |
added FavContacts
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@65 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'FavContacts/src/csocket.h')
-rw-r--r-- | FavContacts/src/csocket.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/FavContacts/src/csocket.h b/FavContacts/src/csocket.h new file mode 100644 index 0000000..3fa1c87 --- /dev/null +++ b/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__
|