Search Results for

    Show / Hide Table of Contents

    TcpClient Class

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

    A client which can connect to a TcpServer.

    public class TcpClient : TcpPeer, IClient, IPeer
    Inheritance
    object
    TcpPeer
    TcpClient
    Implements
    IClient
    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()

    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.

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