![]() |
client6.cpp File Reference#include <StdoutLog.h> #include "ClientSocket.h" #include <SocketHandler.h> Include dependency graph for client6.cpp: ![]() Go to the source code of this file.
Function Documentation
Definition at line 6 of file client6.cpp. 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 }
|