Search Results for

    Show / Hide Table of Contents

    Riptide.Transports.Tcp Namespace

    Provides a low level transport which communicates via TCP sockets.

    This transport is intended to act as a fallback for situations where Riptide's default UDP transport can't establish a connection. It primarily exists because Apple's app review center appears to have issues handling UDP traffic, with UDP-only applications frequently being rejected due to connection issues. Apple's devices do support UDP traffic—it's only their app review center that apparently doesn't allow UDP.

    To work around this, you can start by trying to connect with the UDP transport, and then automatically try again with the TCP transport if that connection fails. This way your end users should end up connecting via UDP, and TCP will only be used in cases where UDP doesn't work. This would obviously require a Server using the TCP transport to be running in addition to a Server using the UDP transport, as Servers cannot use both simultaneously.

    Important

    Due to its very niche purpose, the TCP transport has undergone limited testing and may have more unresolved issues than usual.

    Classes

    TcpClient

    A client which can connect to a TcpServer.

    TcpConnection

    Represents a connection to a TcpServer or TcpClient.

    TcpPeer

    Provides base send & receive functionality for TcpServer and TcpClient.

    TcpServer

    A server which can accept connections from TcpClients.

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