Skip to content

kcp2k::KcpServerConnection

Inherits from KcpConnection

Public Functions

Name
KcpServerConnection(Socket socket, EndPoint remoteEndpoint, bool noDelay, uint interval =Kcp.INTERVAL, int fastResend =0, bool congestionWindow =true, uint sendWindowSize =Kcp.WND_SND, uint receiveWindowSize =Kcp.WND_RCV)

Protected Functions

Name
virtual override void RawSend(byte [] data, int length)

Additional inherited members

Public Functions inherited from KcpConnection

Name
void Tick()
void RawInput(byte [] buffer, int msgLength)
void Send(ArraySegment< byte > data)
void SendHandshake()
void Disconnect()
EndPoint GetRemoteEndPoint()

Protected Functions inherited from KcpConnection

Name
void SetupKcp(bool noDelay, uint interval =Kcp.INTERVAL, int fastResend =0, bool congestionWindow =true, uint sendWindowSize =Kcp.WND_SND, uint receiveWindowSize =Kcp.WND_RCV)
virtual void Dispose()

Public Attributes inherited from KcpConnection

Name
Action OnAuthenticated
Action< ArraySegment< byte > > OnData
Action OnDisconnected
const int TIMEOUT
const int PING_INTERVAL
int SendQueueCount
int ReceiveQueueCount
int SendBufferCount
int ReceiveBufferCount

Protected Attributes inherited from KcpConnection

Name
Socket socket
EndPoint remoteEndpoint

Public Functions Documentation

function KcpServerConnection

inline KcpServerConnection(
    Socket socket,
    EndPoint remoteEndpoint,
    bool noDelay,
    uint interval =Kcp.INTERVAL,
    int fastResend =0,
    bool congestionWindow =true,
    uint sendWindowSize =Kcp.WND_SND,
    uint receiveWindowSize =Kcp.WND_RCV
)

Protected Functions Documentation

function RawSend

inline virtual override void RawSend(
    byte [] data,
    int length
)

Reimplements: kcp2k::KcpConnection::RawSend


Updated on 20 January 2021 at 18:58:30 UTC