Exemple #1
0
int _tmain(int argc, _TCHAR* argv[])
{
	Settings::ListenPort(L"31337");
	ConsoleLogger::Init();
	ConsoleLogger::Log(L"Starting client connection...\n");

	ClientConnection *connection = new ClientConnection(L"localhost", Settings::ListenPort());
	
	Command *cmd = new Command();
	cmd->Cmd(ProtocolCommand::COMMAND_HELLO);

	connection->Dialog(cmd);
	
	delete connection;

	char *buff = new char[BUFSIZE];
	
	gets_s(buff, BUFSIZE);

	return 0;
}