pull in very simple client/server demo code
inspired by http://www.linuxhowtos.org/C_C++/socket.htm
This commit is contained in:
parent
0619031cb6
commit
b4240cf1c8
5 changed files with 176 additions and 4 deletions
|
@ -24,9 +24,9 @@ int main(int argc, char* argv[])
|
|||
|
||||
// Either run the client, the server, or from local filesystem
|
||||
if( arg1 == "client" )
|
||||
return runClient(argc,argv+1);
|
||||
return runClient(argc-1,argv+1);
|
||||
else if ( arg1 == "server" )
|
||||
return runServer(argc,argv+1);
|
||||
return runServer(argc-1,argv+1);
|
||||
else
|
||||
return runFromFilesystem(argc,argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue