ZSocket - MarvelProgramming/Valheim-Networking-Wiki GitHub Wiki

Socket CreateSocket()

void Dispose()

void Close()

IPEndPoint GetEndPoint(string host, int port)

bool Connect(string host, int port)

bool StartHost(int port)

bool BindSocket(Socket socket, IPAddress ipAddress, int startPort, int endPort)

void BeginReceive()

void PkgSizeReceived(IAsyncResult res)

void Disconnect()

void PkgReceived(IAsyncResult res)

void AcceptCallback(IAsyncResult res)

ZSocket Accept()

bool IsConnected()

void Send(ZPackage pkg)

void PkgSent(IAsyncResult res)

ZPackage Recv()

string GetEndPointString()

string GetEndPointHost()

IPEndPoint GetEndPoint()

bool IsPeer(string host, int port)

bool IsHost()

int GetHostPort()

bool IsSending()

void GetAndResetStats(int totalSent, int totalRecv)