TcpClient Class
Namespace: Riptide.Transports.Tcp
Assembly: RiptideNetworking.dll
A client which can connect to a TcpServer.
public class TcpClient : TcpPeer, IClient, IPeer
Inherited Members
Methods
| Connect(string, out Connection, out string) | Starts the transport and attempts to connect to the given host address. |
| Disconnect() | Closes the connection to the server. |
| OnConnected() | Invokes the Connected event. |
| OnConnectionFailed() | Invokes the ConnectionFailed event. |
| OnDataReceived(int, TcpConnection) | Handles received data. |
| Poll() | Initiates handling of any received messages. |
Events
| Connected | Invoked when a connection is established at the transport level. |
| ConnectionFailed | Invoked when a connection attempt fails at the transport level. |
| DataReceived | Invoked when data is received by the transport. |