summaryrefslogtreecommitdiff
path: root/src/socket.cc
diff options
context:
space:
mode:
authordeva <deva>2005-06-19 11:44:14 +0000
committerdeva <deva>2005-06-19 11:44:14 +0000
commit52fd913be8b044f1d064973c53b4467e5bd153fe (patch)
tree807ac3d85c9af0fe81bd88c22f6fe32c3c7af25b /src/socket.cc
parent60053525996c751ea9cdeddebbea8fa98e0c23a3 (diff)
Cleaned up a log of logging.
Fixed server queue (shouldn't happen). Added user and group lookup.
Diffstat (limited to 'src/socket.cc')
-rw-r--r--src/socket.cc12
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;
+}