C# Class SteamKit2.TcpSocket

Represents a Tcp socket.
Mostrar archivo Open project: Top-Cat/SteamBot Class Usage Examples

Public Methods

Method Description
Connect ( IPEndPoint endPoint ) : void

Disconnects (if needed) and connects the specified end point.

Disconnect ( ) : void

Disconnects this socket.

GetLocalIP ( ) : IPAddress

Gets the local IP.

ReceivePacket ( ) : TcpPacket

Attempts to receive a tcp packet from the socket.

Send ( TcpPacket packet ) : void

Sends the specified packet on the socket.

Send ( byte data ) : void

Sends the specified data on the socket.

TcpSocket ( ) : System.IO

Initializes a new instance of the TcpSocket class.

Method Details

Connect() public method

Disconnects (if needed) and connects the specified end point.
public Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint The end point.
return void

Disconnect() public method

Disconnects this socket.
public Disconnect ( ) : void
return void

GetLocalIP() public method

Gets the local IP.
public GetLocalIP ( ) : IPAddress
return System.Net.IPAddress

ReceivePacket() public method

Attempts to receive a tcp packet from the socket.
public ReceivePacket ( ) : TcpPacket
return TcpPacket

Send() public method

Sends the specified packet on the socket.
public Send ( TcpPacket packet ) : void
packet TcpPacket The packet.
return void

Send() public method

Sends the specified data on the socket.
public Send ( byte data ) : void
data byte The data.
return void

TcpSocket() public method

Initializes a new instance of the TcpSocket class.
public TcpSocket ( ) : System.IO
return System.IO