Changeset 148
- Timestamp:
- Jun 24, 2008, 8:06:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/net/tcpip.cpp
r124 r148 22 22 extern tcpip_protocol tcpip; 23 23 24 //#define TCPIP_DEBUG24 #define TCPIP_DEBUG 25 25 26 26 //{{{ net logging stuff 27 /*27 28 28 FILE *log_file=NULL; 29 29 extern int net_start(); … … 54 54 fflush(log_file); 55 55 56 } */56 } 57 57 //}}} 58 58 … … 66 66 { 67 67 int tr=::read(fd,(char*)buf,size); 68 69 net_log("tcpip.cpp: unix_fd::read:", (char *) buf, (long) size); 70 68 71 if (addr) *addr=NULL; 69 72 return tr; … … 74 77 //{{{ 75 78 { 79 net_log("tcpip.cpp: unix_fd::write:", (char *) buf, (long) size); 80 76 81 if (addr) fprintf(stderr,"Cannot change address for this socket type\n"); 77 82 return ::write(fd,(char*)buf,size);
Note: See TracChangeset
for help on using the changeset viewer.