Added socket functions for connecting over TCP - fixed some stuff, added uplink support to server binary.

This commit is contained in:
Thulinma 2011-10-18 05:17:50 +02:00
commit dd9eb3522a
2 changed files with 42 additions and 0 deletions

View file

@ -26,6 +26,7 @@ namespace Socket{
public:
Connection(); ///< Create a new disconnected base socket.
Connection(int sockNo); ///< Create a new base socket.
Connection(std::string hostname, int port, bool nonblock); ///< Create a new TCP socket.
Connection(std::string adres, bool nonblock = false); ///< Create a new Unix Socket.
bool canRead(); ///< Calls poll() on the socket, checking if data is available.
bool canWrite(); ///< Calls poll() on the socket, checking if data can be written.