Ignore:
Timestamp:
Jun 24, 2008, 8:06:01 AM (15 years ago)
Author:
holiday
Message:

tcpip fd read/write log on until netcode works!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/tcpip.cpp

    r124 r148  
    2222extern tcpip_protocol tcpip;
    2323
    24 //#define TCPIP_DEBUG
     24#define TCPIP_DEBUG
    2525
    2626//{{{ net logging stuff
    27 /*
     27
    2828FILE *log_file=NULL;
    2929extern int net_start();
     
    5454    fflush(log_file);
    5555
    56 } */
     56}
    5757//}}}
    5858
     
    6666{
    6767  int tr=::read(fd,(char*)buf,size);
     68
     69  net_log("tcpip.cpp: unix_fd::read:", (char *) buf, (long) size);
     70
    6871  if (addr) *addr=NULL;
    6972  return tr;
     
    7477//{{{
    7578{
     79  net_log("tcpip.cpp: unix_fd::write:", (char *) buf, (long) size);
     80
    7681  if (addr) fprintf(stderr,"Cannot change address for this socket type\n");
    7782  return ::write(fd,(char*)buf,size);
Note: See TracChangeset for help on using the changeset viewer.