#include <stdio.h>
#include "wcl/network/TCPSocket.h"

int main(void)
{
	char buffer[4096];

	try{
		TCPSocket s("10.220.99.84", 55555);
		s.read((char *)buffer, 4096);
		printf("Client: Server Said: %s\n", buffer);
		s.close();
	}
	catch( SocketException* e )
	{
		fprintf( stderr, e->getReason().c_str() );
	}

	return 0;
}

#include <stdio.h>
#include "wcl/network/TCPSocket.h"

int main(void)
{
	char buffer[4096];

	try{
		TCPSocket s("127.0.0.1", 55555);
		s.read((char *)buffer, 4096);
		printf("Client: Server Said: %s\n", buffer);
		s.close();
	}
	catch( SocketException* e )
	{
		fprintf( stderr, e->getReason().c_str() );
	}

	return 0;
}

Use localhost by default in our test network client
Use localhost by default in our test network client

Using a fixed ip address is a little pointless. Instead
we use localhost as it exists everwhere
