You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcflames5 edited this page Aug 23, 2014
·
1 revision
Just like a basic server, a basic client is quite easy to create using ServerInterconnect.
The code is the same for both unencrypted and encrypted connections, it automatically detects whether the server it is connecting to is encrypted or not.
Creating a basic client is very simple:
//Address that you wish to connect toStringaddress = "127.0.0.1";
//Port that you wish to connect tointport = 1337;
//Create a client managerTcpClientManagermanager = newTcpClientManager(address, port);
//Initialize the connectiontry { manager.initialize(); }
catch (IOExceptione) { /* handle exception */ }