Logo
~Sockets~
~Examples~
~Contact~


server.cpp

Go to the documentation of this file.
00001 #include "ServerSocket.h"
00002 #include <ListenSocket.h>
00003 #include <SocketHandler.h>
00004 
00005 
00006 int main()
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 }
00021 
00022 
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