TcpServer Class
Namespace: Riptide.Transports.Tcp
Assembly: RiptideNetworking.dll
A server which can accept connections from TcpClients.
public class TcpServer : TcpPeer, IServer, IPeer
Inherited Members
Constructors
| TcpServer(int) | Initializes the transport. |
| TcpServer(IPAddress, int) | Initializes the transport, binding the socket to a specific IP address. |
Properties
| MaxPendingConnections | The maximum number of pending connections to allow at any given time. |
| Port | The local port that the server is running on. |
Methods
| Close(Connection) | Closes an active connection. |
| OnConnected(Connection) | Invokes the Connected event. |
| OnDataReceived(int, TcpConnection) | Handles received data. |
| Poll() | Initiates handling of any received messages. |
| Shutdown() | Closes all existing connections and stops listening for new connections. |
| Start(ushort) | Starts the transport and begins listening for incoming connections. |
Events
| Connected | Invoked when a connection is established at the transport level. |
| DataReceived | Invoked when data is received by the transport. |