Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.Sockets.TcpClient Class Reference

Public Member Functions

 TcpClient ()
 
 TcpClient (AddressFamily family)
 
 TcpClient (IPEndPoint localEP)
 
 TcpClient (string hostname, int port)
 
void Connect (string hostname, int port)
 
void Connect (IPAddress address, int port)
 
void Connect (IPEndPoint remoteEP)
 
void Connect (IPAddress[] ipAddresses, int port)
 
Task ConnectAsync (IPAddress address, int port)
 
Task ConnectAsync (string host, int port)
 
Task ConnectAsync (IPAddress[] addresses, int port)
 
Task ConnectAsync (IPEndPoint remoteEP)
 
ValueTask ConnectAsync (IPAddress address, int port, CancellationToken cancellationToken)
 
ValueTask ConnectAsync (string host, int port, CancellationToken cancellationToken)
 
ValueTask ConnectAsync (IPAddress[] addresses, int port, CancellationToken cancellationToken)
 
ValueTask ConnectAsync (IPEndPoint remoteEP, CancellationToken cancellationToken)
 
IAsyncResult BeginConnect (IPAddress address, int port, AsyncCallback? requestCallback, object? state)
 
IAsyncResult BeginConnect (string host, int port, AsyncCallback? requestCallback, object? state)
 
IAsyncResult BeginConnect (IPAddress[] addresses, int port, AsyncCallback? requestCallback, object? state)
 
void EndConnect (IAsyncResult asyncResult)
 
NetworkStream GetStream ()
 
void Close ()
 
void Dispose ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Package Functions

 TcpClient (Socket acceptedSocket)
 

Properties

bool Disposed [get]
 
bool Active [get, set]
 
int Available [get]
 
Socket Client [get, set]
 
bool Connected [get]
 
bool ExclusiveAddressUse [get, set]
 
int ReceiveBufferSize [get, set]
 
int SendBufferSize [get, set]
 
int ReceiveTimeout [get, set]
 
int SendTimeout [get, set]
 
LingerOptionLingerState [get, set]
 
bool NoDelay [get, set]
 

Private Member Functions

async Task CompleteConnectAsync (Task task)
 
async ValueTask CompleteConnectAsync (ValueTask task)
 
 ~TcpClient ()
 
void InitializeClientSocket ()
 
void ThrowIfDisposed ()
 

Private Attributes

AddressFamily _family
 
Socket _clientSocket
 
NetworkStream _dataStream
 
volatile int _disposed
 
bool _active
 

Detailed Description

Definition at line 8 of file TcpClient.cs.


The documentation for this class was generated from the following file: