Search Results for

    Show / Hide Table of Contents

    TcpServer Class

    Namespace: Riptide.Transports.Tcp
    Assembly: RiptideNetworking.dll

    A server which can accept connections from TcpClients.

    public class TcpServer : TcpPeer, IServer, IPeer
    Inheritance
    object
    TcpPeer
    TcpServer
    Implements
    IServer
    IPeer
    Inherited Members
    TcpPeer.Disconnected
    TcpPeer.DefaultSocketBufferSize
    TcpPeer.socketBufferSize
    TcpPeer.socket
    TcpPeer.OnDisconnected(Connection, DisconnectReason)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    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.

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX