Logo
~Sockets~
~Examples~
~Contact~


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.


Functions

int main ()

Function Documentation

int main (  ) 

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 }

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