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