TcpPeer Class
Namespace: Riptide.Transports.Tcp
Assembly: RiptideNetworking.dll
public abstract class TcpPeer
Inherited Members
Constructors
TcpPeer(int) | Initializes the transport. |
Fields
DefaultSocketBufferSize | The default size used for the socket's send and receive buffers. |
socket | The main socket, either used for listening for connections or for sending and receiving data. |
socketBufferSize | The size to use for the socket's send and receive buffers. |
Methods
OnDataReceived(int, TcpConnection) | Handles received data. |
OnDisconnected(Connection, DisconnectReason) | Invokes the Disconnected event. |
Events
Disconnected | Invoked when a disconnection is initiated or detected by the transport. |