Property | Type | Description | |
---|---|---|---|
Servers | System.Net.IPAddress[] |
Method | Description | |
---|---|---|
CMClient ( ProtocolType type = ProtocolType.Tcp ) : System |
Initializes a new instance of the CMClient class with a specific connection type.
|
|
Connect ( bool bEncrypted = true ) : void |
Connects this client to a Steam3 server. This begins the process of connecting and encrypting the data channel between the client and the server. Results are returned in a SteamClient.ConnectedCallback.
|
|
Disconnect ( ) : void |
Disconnects this client.
|
|
GetServersOfType ( EServerType type ) : List |
Returns the list of servers matching the given type
|
|
Send ( IClientMsg msg ) : void |
Sends the specified client message to the server. This method automatically assigns the correct SessionID and SteamID of the message.
|
Method | Description | |
---|---|---|
OnClientConnected ( ) : void |
Called when the client is connected to Steam3 and is ready to send messages.
|
|
OnClientDisconnected ( ) : void |
Called when the client is physically disconnected from Steam3.
|
|
OnClientMsgReceived ( IPacketMsg packetMsg ) : void |
Called when a client message is received from the network.
|
Method | Description | |
---|---|---|
Connected ( object sender, |
||
Disconnected ( object sender, |
||
GetPacketMsg ( byte data ) : IPacketMsg | ||
HandleEncryptRequest ( IPacketMsg packetMsg ) : void | ||
HandleEncryptResult ( IPacketMsg packetMsg ) : void | ||
HandleLogOnResponse ( IPacketMsg packetMsg ) : void | ||
HandleLoggedOff ( IPacketMsg packetMsg ) : void | ||
HandleMulti ( IPacketMsg packetMsg ) : void | ||
HandleServerList ( IPacketMsg packetMsg ) : void | ||
NetMsgReceived ( object sender, NetMsgEventArgs e ) : void |
public CMClient ( ProtocolType type = ProtocolType.Tcp ) : System | ||
type | ProtocolType | The connection type to use. |
return | System |
public Connect ( bool bEncrypted = true ) : void | ||
bEncrypted | bool |
/// If set to |
return | void |
public GetServersOfType ( EServerType type ) : List |
||
type | EServerType | Server type requested |
return | List |
protected abstract OnClientConnected ( ) : void | ||
return | void |
protected abstract OnClientDisconnected ( ) : void | ||
return | void |
protected OnClientMsgReceived ( IPacketMsg packetMsg ) : void | ||
packetMsg | IPacketMsg | The packet message. |
return | void |
public Send ( IClientMsg msg ) : void | ||
msg | IClientMsg | The client message to send. |
return | void |