Assorted bugfixes to DTSC and Socket libraries.

This commit is contained in:
Thulinma 2013-02-19 16:06:39 +01:00
parent 603376d15a
commit 1baff448f2
3 changed files with 37 additions and 18 deletions

View file

@ -97,6 +97,7 @@ namespace Socket {
/// This class is for easily setting up listening socket, either TCP or Unix.
class Server{
private:
std::string errors; ///< Stores errors that may have occured.
int sock; ///< Internally saved socket number.
bool IPv6bind(int port, std::string hostname, bool nonblock); ///< Attempt to bind an IPv6 socket
bool IPv4bind(int port, std::string hostname, bool nonblock); ///< Attempt to bind an IPv4 socket