Mine
public text v1 · immutable#include "ClientSocket.h"
#include "SocketException.h"
#include <string>
#include <stdio.h>
using namespace::std;
int main( int argc, char *argv[]) {
char *host;
for (int i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-h")) {
host = argv[++i];
}
}
if (host == NULL) {
// no host
return 0x80;
}
try {
//create the client socket
ClientSocket client_socket ( host, port );
}
return 0;
}