C# 클래스 SteamKit2.UdpConnection

상속: Connection
파일 보기 프로젝트 열기: Top-Cat/SteamBot

공개 메소드들

메소드 설명
Connect ( IPEndPoint endPoint ) : void

Connects to the specified CM server.

Disconnect ( ) : void

Disconnects this instance, blocking until the queue of messages is empty or the connection is otherwise terminated.

GetLocalIP ( ) : IPAddress
Send ( IClientMsg clientMsg ) : void

Serializes and sends the provided message to the server in as many packets as is necessary.

UdpConnection ( ) : System

비공개 메소드들

메소드 설명
DispatchMessage ( ) : bool

Dispatches up to one message to the rest of SteamKit

NetLoop ( ) : void

Processes incoming packets, maintains connection consistency, and oversees outgoing packets.

ReadyMessageParts ( ) : uint

Returns the number of message parts in the next message.

ReceiveAccept ( SteamKit2.UdpPacket packet ) : void

Receives the notification of an accepted connection and sets the connection id that will be used for the connection's duration.

ReceiveChallenge ( SteamKit2.UdpPacket packet ) : void

Receives the challenge and responds with a Connect request

ReceiveData ( SteamKit2.UdpPacket packet ) : void

Receives typical data packets before dispatching them for consumption by the rest of SteamKit

ReceivePacket ( SteamKit2.UdpPacket packet ) : void

Receives the packet, performs all sanity checks and then passes it along as necessary.

SendAck ( ) : void

Sends a datagram Ack, used when an Ack needs to be sent but there is no data response to piggy-back on.

SendData ( MemoryStream ms ) : void

Sends the data sequenced as a single message, splitting it into multiple parts if necessary.

SendPacket ( SteamKit2.UdpPacket packet ) : void

Sends a packet immediately.

SendPendingMessages ( ) : void

Sends or resends sequenced messages, if necessary. Also responsible for throttling the rate at which they are sent.

SendSequenced ( SteamKit2.UdpPacket packet ) : void

Sends the packet as a sequenced, reliable packet.

메소드 상세

Connect() 공개 메소드

Connects to the specified CM server.
public Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint The CM server.
리턴 void

Disconnect() 공개 메소드

Disconnects this instance, blocking until the queue of messages is empty or the connection is otherwise terminated.
public Disconnect ( ) : void
리턴 void

GetLocalIP() 공개 메소드

public GetLocalIP ( ) : IPAddress
리턴 System.Net.IPAddress

Send() 공개 메소드

Serializes and sends the provided message to the server in as many packets as is necessary.
public Send ( IClientMsg clientMsg ) : void
clientMsg IClientMsg The ClientMsg
리턴 void

UdpConnection() 공개 메소드

public UdpConnection ( ) : System
리턴 System