Search Results for

    Show / Hide Table of Contents

    TcpPeer Class

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

    Provides base send & receive functionality for TcpServer and TcpClient.

    public abstract class TcpPeer
    Inheritance
    object
    TcpPeer
    TcpClient
    TcpServer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    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.

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