Skip to content

kcp2k::KcpClientConnection

Inherits from KcpConnection

Public Functions

Name
void Connect(string host, ushort port, bool noDelay, uint interval =Kcp.INTERVAL, int fastResend =0, bool congestionWindow =true, uint sendWindowSize =Kcp.WND_SND, uint receiveWindowSize =Kcp.WND_RCV)
void RawReceive()

Protected Functions

Name
virtual override void Dispose()
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)

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 Connect

inline void Connect(
    string host,
    ushort port,
    bool noDelay,
    uint interval =Kcp.INTERVAL,
    int fastResend =0,
    bool congestionWindow =true,
    uint sendWindowSize =Kcp.WND_SND,
    uint receiveWindowSize =Kcp.WND_RCV
)

function RawReceive

inline void RawReceive()

Protected Functions Documentation

function Dispose

inline virtual override void Dispose()

Reimplements: kcp2k::KcpConnection::Dispose

function RawSend

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

Reimplements: kcp2k::KcpConnection::RawSend


Updated on 17 January 2021 at 15:32:36 UTC