Property | Type | Description | |
---|---|---|---|
MessageReceived | void |
Method | Description | |
---|---|---|
ClientConnection ( string ip, int port ) : System |
Initializes a new instance of the ClientConnection class. Responsible for client connections to the host/server.
|
|
Close ( ) : void |
Close the socket connection.
|
|
SendString ( string message ) : void |
Send a string to the host.
|
|
Start ( ) : void |
Beging the client connection. Will connect to specified host and begin receiving data.
|
Method | Description | |
---|---|---|
MessageReceived ( ClientInfo clientInfo, string message ) : void |
Called when a message was received from the connection.
|
public ClientConnection ( string ip, int port ) : System | ||
ip | string | Ips of server. |
port | int | Port of server. |
return | System |
public SendString ( string message ) : void | ||
message | string | Message to send. |
return | void |