Logo
~Sockets~
~Examples~
~Contact~


client6.cpp

Go to the documentation of this file.
00001 #include <StdoutLog.h>
00002 #include "ClientSocket.h"
00003 #include <SocketHandler.h>
00004 
00005 
00006 int main(int argc,char *argv[])
00007 {
00008         if (argc < 2)
00009         {
00010                 printf("Usage: %s <command>\n",*argv);
00011                 return -1;
00012         }
00013         SocketHandler h;
00014         StdoutLog log;
00015         h.RegStdLog(&log);
00016         ClientSocket cc(h,argv[1]);
00017 
00018         cc.SetIpv6();
00019         cc.Open("localhost",40001);
00020         // Add after Open
00021         h.Add(&cc);
00022         h.Select(1,0);
00023         while (h.GetCount())
00024         {
00025                 h.Select(1,0);
00026         }
00027 }
00028 
00029 
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