- Timestamp:
- May 24, 2006, 1:09:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_log.h
r7778 r7799 9 9 #include "netdefs.h" 10 10 #include "debug.h" 11 #include "SDL_net.h"12 11 13 12 #include <string> … … 44 43 /** @returns a Pointer to the only object of this Class */ 45 44 inline static NetworkLog* getInstance(void) { if (!singletonRef) singletonRef = new NetworkLog(); return singletonRef; }; 46 45 47 46 bool listen( int port ); 48 47 49 48 void printfnet( ); 50 49 51 50 void printfn( char * format, ... ); 52 51 void printf0( char * format, ... ); … … 59 58 private: 60 59 NetworkLog(); 61 60 62 61 void acceptNewConnections(); 63 62 64 63 static NetworkLog* singletonRef; 65 64 66 65 TCPsocket listensock; 67 66 std::list<TCPsocket> sockets; 68 67 69 68 char buf[NETWORK_LOG_BUFLEN]; 70 69 };
Note: See TracChangeset
for help on using the changeset viewer.