tModLoader v2024.11
A mod to make and play Terraria mods
TcpSocket Class Reference

Inherits ISocket.

Public Member Functions

 TcpSocket (TcpClient tcpClient)
 
void AsyncReceive (byte[] data, int offset, int size, SocketReceiveCallback callback, object state=null)
 
void AsyncSend (byte[] data, int offset, int size, SocketSendCallback callback, object state=null)
 
void Close ()
 
void Connect (RemoteAddress address)
 
RemoteAddress GetRemoteAddress ()
 
bool IsConnected ()
 
bool IsDataAvailable ()
 
void SendQueuedPackets ()
 
bool StartListening (SocketConnectionAccepted callback)
 
void StopListening ()
 

Properties

int MessagesInQueue [get]