Skip to content

Instantly share code, notes, and snippets.

@JoelPM
Created February 5, 2014 07:18
this.transport = new TSocket(server, port);
this.protocol = new TBinaryProtocol(transport);
this.connectionMonitor = new ConnectionStatusMonitor(transport);
this.sender = new MessageSender(protocol, connectionMonitor);
this.receiver = new MessageReceiver(protocol, messageHandler, connectionMonitor);
new Thread(sender).start();
new Thread(receiver).start();
this.connectionMonitor.tryOpen();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment