Added socket functions for connecting over TCP - fixed some stuff, added uplink support to server binary.
This commit is contained in:
commit
9526cdc995
3 changed files with 135 additions and 21 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue