Logo
~Sockets~
~Examples~
~Contact~


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.


Functions

int main ()

Function Documentation

int main (  ) 

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 }

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