moved client and server files into their own respective

directories.
This commit is contained in:
crs
2001-11-18 23:14:28 +00:00
parent 6a223b7da5
commit 51505783aa
20 changed files with 105 additions and 29 deletions

24
client/client.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "CClient.h"
#include "CNetworkAddress.h"
#include "CThread.h"
#include <stdio.h>
int main(int argc, char** argv)
{
CThread::init();
if (argc != 2) {
fprintf(stderr, "usage: %s <hostname>\n", argv[0]);
return 1;
}
try {
CClient* client = new CClient("ingrid");
client->run(CNetworkAddress(argv[1], 50001));
}
catch (XBase& e) {
fprintf(stderr, "failed: %s\n", e.what());
return 1;
}
return 0;
}