Method | Description | |
---|---|---|
Connect ( String ip, int port ) : bool |
Connects to the specified ip and port
|
|
Connection ( ) : System | ||
Connection ( Socket socket ) : System | ||
Disconnect ( ) : void |
Disconnects from the host
|
|
Send ( ) : bool |
Sends the specified message to the host, parameterized
|
|
Send ( String data ) : bool |
Sends the specified message to the host
|
|
SendSynchronous ( String data ) : String |
Sends the specified message to the host and waits for a response
|
|
StartListener ( ) : void |
Starts the connection thread
|
Method | Description | |
---|---|---|
Listen ( ) : void |
Listens for incoming messages and fires and event on data
|
public Connect ( String ip, int port ) : bool | ||
ip | String | The ip to connect to |
port | int | The port to use |
return | bool |
public SendSynchronous ( String data ) : String | ||
data | String | The data to send |
return | String |