Logo
~Sockets~
~Examples~
~Contact~


server6.cpp

Go to the documentation of this file.
00001 #include "ServerSocket.h"
00002 #include <ListenSocket.h>
00003 #include <StdoutLog.h>
00004 #include <SocketHandler.h>
00005 
00006 
00007 int main()
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 }
00026 
00027 
Page, code, and content Copyright (C) 2006 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4