Logo
~Sockets~
~Examples~
~Contact~


client.cpp File Reference

#include "ClientSocket.h"
#include <SocketHandler.h>

Include dependency graph for client.cpp:

Go to the source code of this file.


Functions

int main (int argc, char *argv[])

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 5 of file client.cpp.

00006 {
00007         if (argc > 1)
00008         {
00009                 SocketHandler h;
00010                 ClientSocket cc(h,argv[1]);
00011                 cc.Open("127.0.0.1",40001);
00012                 // Add after Open
00013                 h.Add(&cc);
00014                 h.Select(1,0);
00015                 while (h.GetCount())
00016                 {
00017                         h.Select(1,0);
00018                 }
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