C# Class SteamKit2.Connection

Datei anzeigen Open project: Top-Cat/SteamBot Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
OnConnected ( EventArgs e ) : void
OnDisconnected ( EventArgs e ) : void
OnNetMsgReceived ( NetMsgEventArgs e ) : void

Raises the E:NetMsgReceived event.

Method Details

Connect() public abstract method

Connects to the specified end point.
public abstract Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint The end point.
return void

Disconnect() public abstract method

Disconnects this instance.
public abstract Disconnect ( ) : void
return void

GetLocalIP() public abstract method

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

OnConnected() protected method

protected OnConnected ( EventArgs e ) : void
e System.EventArgs
return void

OnDisconnected() protected method

protected OnDisconnected ( EventArgs e ) : void
e System.EventArgs
return void

OnNetMsgReceived() protected method

Raises the E:NetMsgReceived event.
protected OnNetMsgReceived ( NetMsgEventArgs e ) : void
e NetMsgEventArgs The instance containing the event data.
return void

Send() public abstract method

Sends the specified client net message.
public abstract Send ( IClientMsg clientMsg ) : void
clientMsg IClientMsg The client net message.
return void