All pastes #386709 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-08 21:00 UTC
rendered paste body
#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;
}