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