diff options
Diffstat (limited to 'src/socket.cc')
-rw-r--r-- | src/socket.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/socket.cc b/src/socket.cc index c5a2575..91b8e34 100644 --- a/src/socket.cc +++ b/src/socket.cc @@ -31,6 +31,11 @@ /* * $Log$ + * Revision 1.7 2005/06/19 11:44:14 deva + * Cleaned up a log of logging. + * Fixed server queue (shouldn't happen). + * Added user and group lookup. + * * Revision 1.6 2005/06/02 15:03:23 deva * * Fixed crash in network.cc if socket not connected. @@ -79,7 +84,7 @@ Socket::Socket(u_short port, Info *ginfo) socketaddr.sin_family = AF_INET; // Use "internet protocol" IP socketaddr.sin_port = htons(port); // connect to that port socketaddr.sin_addr.s_addr = INADDR_ANY; - // INADDR_ANY puts your IP address automatically + // INADDR_ANY puts your IP address automatically } @@ -165,3 +170,8 @@ bool Socket::isConnected() { return connected; } + +bool Socket::hasError() +{ + return err != 0; +} |