Changeset 1784 for box/chris/general/lib/server/Socket.cpp
- Timestamp:
- 01/08/2007 00:18:50 (5 years ago)
- File:
-
- 1 edited
-
box/chris/general/lib/server/Socket.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/lib/server/Socket.cpp
r456 r1784 18 18 #include <sys/socket.h> 19 19 #include <netdb.h> 20 #include <syslog.h>21 20 #include <netinet/in.h> 22 21 #include <arpa/inet.h> … … 125 124 { 126 125 case AF_UNIX: 127 ::syslog(LOG_INFO,"Incoming connection from local (UNIX socket)");126 BOX_INFO("Incoming connection from local (UNIX socket)"); 128 127 break; 129 128 … … 131 130 { 132 131 sockaddr_in *a = (sockaddr_in*)addr; 133 ::syslog(LOG_INFO, "Incoming connection from %s port %d", inet_ntoa(a->sin_addr), ntohs(a->sin_port)); 132 BOX_INFO("Incoming connection from " << 133 inet_ntoa(a->sin_addr) << " port " << 134 ntohs(a->sin_port)); 134 135 } 135 136 break; 136 137 137 138 default: 138 ::syslog(LOG_INFO,"Incoming connection of unknown type");139 BOX_WARNING("Incoming connection of unknown type"); 139 140 break; 140 141 }
Note: See TracChangeset
for help on using the changeset viewer.
