pull in very simple client/server demo code

inspired by http://www.linuxhowtos.org/C_C++/socket.htm
This commit is contained in:
mdiluzio 2015-01-02 15:13:05 +00:00
parent 0619031cb6
commit b4240cf1c8
5 changed files with 176 additions and 4 deletions

View file

@ -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);