C# Class SteamKit2.TcpSocket

Represents a Tcp socket.
Afficher le fichier Open project: Top-Cat/SteamBot Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

Disconnect() public méthode

Disconnects this socket.
public Disconnect ( ) : void
Résultat void

GetLocalIP() public méthode

Gets the local IP.
public GetLocalIP ( ) : IPAddress
Résultat System.Net.IPAddress

ReceivePacket() public méthode

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

Send() public méthode

Sends the specified packet on the socket.
public Send ( TcpPacket packet ) : void
packet TcpPacket The packet.
Résultat void

Send() public méthode

Sends the specified data on the socket.
public Send ( byte data ) : void
data byte The data.
Résultat void

TcpSocket() public méthode

Initializes a new instance of the TcpSocket class.
public TcpSocket ( ) : System.IO
Résultat System.IO