![]() |
server.cpp File Reference#include "ServerSocket.h" #include <ListenSocket.h> #include <SocketHandler.h> Include dependency graph for server.cpp: ![]() Go to the source code of this file.
Function Documentation
Definition at line 6 of file server.cpp. 00007 { 00008 SocketHandler h; 00009 ListenSocket<ServerSocket> l(h); 00010 if (l.Bind(40001,10)) 00011 { 00012 exit(-1); 00013 } 00014 h.Add(&l); 00015 h.Select(1,0); 00016 while (h.GetCount()) 00017 { 00018 h.Select(1,0); 00019 } 00020 }
|