C# Класс SteamKit2.Connection

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Connect ( IPEndPoint endPoint ) : void

Connects to the specified end point.

Disconnect ( ) : void

Disconnects this instance.

GetLocalIP ( ) : IPAddress

Gets the local IP.

Send ( IClientMsg clientMsg ) : void

Sends the specified client net message.

Защищенные методы

Метод Описание
OnConnected ( EventArgs e ) : void
OnDisconnected ( EventArgs e ) : void
OnNetMsgReceived ( NetMsgEventArgs e ) : void

Raises the E:NetMsgReceived event.

Описание методов

Connect() публичный абстрактный Метод

Connects to the specified end point.
public abstract Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint The end point.
Результат void

Disconnect() публичный абстрактный Метод

Disconnects this instance.
public abstract Disconnect ( ) : void
Результат void

GetLocalIP() публичный абстрактный Метод

Gets the local IP.
public abstract GetLocalIP ( ) : IPAddress
Результат System.Net.IPAddress

OnConnected() защищенный Метод

protected OnConnected ( EventArgs e ) : void
e System.EventArgs
Результат void

OnDisconnected() защищенный Метод

protected OnDisconnected ( EventArgs e ) : void
e System.EventArgs
Результат void

OnNetMsgReceived() защищенный Метод

Raises the E:NetMsgReceived event.
protected OnNetMsgReceived ( NetMsgEventArgs e ) : void
e NetMsgEventArgs The instance containing the event data.
Результат void

Send() публичный абстрактный Метод

Sends the specified client net message.
public abstract Send ( IClientMsg clientMsg ) : void
clientMsg IClientMsg The client net message.
Результат void