summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/socket.h')
-rw-r--r--protocols/Xfire/src/socket.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/protocols/Xfire/src/socket.h b/protocols/Xfire/src/socket.h
deleted file mode 100644
index 58e287ec42..0000000000
--- a/protocols/Xfire/src/socket.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copied from http://linuxgazette.net/issue74/tougher.html
-// (only slightly modified)
-
-
-// Definition of the Socket class
-
-
-#ifndef Socket_class
-#define Socket_class
-
-#include "stdafx.h"
-
-#include "socketexception.h"
-
-
-const int MAXHOSTNAME = 200;
-const int MAXCONNECTIONS = 5;
-const int MAXRECV = 500;
-
-class Socket
-{
-public:
- //proxy hinzugefügt dufte
- Socket( std::string host, int port,int useproxy = 0,std::string proxyhost = " ", int proxyport = 0 );
- virtual ~Socket();
-
- // Server initialization
- bool create();
- bool bind ( const int port );
- bool listen() const;
- bool accept ( Socket& ) const;
-
- // Client initialization
- bool connect ( const std::string host, const int port, int useproxy,std::string proxyhost,int proxyport);
-
- // Data Transimission
- bool send ( char *buf, int length ) const;
- bool send ( const std::string ) const;
- int recv ( std::string& ) const;
- int recv ( char *buf, int maxlen ) const;
-
-
- void set_non_blocking ( const bool );
-
- bool is_valid() const { return true; }
-
- int m_sock;
-
-private:
- sockaddr_in m_addr;
- HANDLE netlibcon;
-};
-
-#endif