--- deliantra/server/socket/init.C 2006/12/14 22:45:41 1.19 +++ deliantra/server/socket/init.C 2006/12/15 19:59:20 1.20 @@ -43,18 +43,17 @@ #include #include -#include -sockvec client_sockets; +sockvec clients; /** * Initializes a connection. Really, it just sets up the data structure, * socket setup is handled elsewhere. We do send a version to the * client. */ -client_socket::client_socket (int fd, const char *peername) +client::client (int fd, const char *peername) : fd (fd), host (strdup (peername)), - socket_ev (this, &client_socket::socket_cb) + socket_ev (this, &client::socket_cb) { { struct linger linger_opt; @@ -121,7 +120,7 @@ #endif } -client_socket::~client_socket () +client::~client () { status = Ns_Dead; } @@ -166,7 +165,7 @@ */ void -free_newsocket (client_socket *ns) +free_newsocket (client *ns) { if (ns->fd >= 0) close (ns->fd); @@ -195,7 +194,7 @@ } bool -add_client_socket (int fd, const char *peername) +add_client (int fd, const char *peername) { if (checkbanned (NULL, peername)) { @@ -204,8 +203,8 @@ } else { - client_socket *ns = new client_socket (dup (fd), peername); - client_sockets.push_back (ns); + client *ns = new client (dup (fd), peername); + clients.push_back (ns); return true; } }