C# 클래스 SteamKit2.TcpSocket

Represents a Tcp socket.
파일 보기 프로젝트 열기: Top-Cat/SteamBot 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Connect() 공개 메소드

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

Disconnect() 공개 메소드

Disconnects this socket.
public Disconnect ( ) : void
리턴 void

GetLocalIP() 공개 메소드

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

ReceivePacket() 공개 메소드

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

Send() 공개 메소드

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

Send() 공개 메소드

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

TcpSocket() 공개 메소드

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