C# Class SRPClient.NetworkManager

Afficher le fichier Open project: SleeplessByte/lidgren-srp6a Class Usage Examples

Méthodes publiques

Méthode Description
AsyncConnect ( String username, String password ) : void

Starts connecting with username and password

AsyncFindNearbyServer ( ) : void

Async finds new server

AsyncFindNearbyServer ( System.Boolean newServer ) : void

Starts finding a nearby server asynchronously

Authenticate ( NetConnection connection, String username, String password ) : void

Starts authenticating the user

Connect ( IPEndPoint endPoint ) : void

Connects to an endpoint

Disconnect ( String message ) : void

Disconnects client and resets connecting status

Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

Loop ( ) : void

SetupLobby ( ) : void

Setups lobby events

Private Methods

Méthode Description
CancelConnect ( ) : void

Cancells any running connections

Game_Exiting ( object sender, EventArgs e ) : void

On Game Exiting, stop server

NetLobby_OnDenied ( string reason ) : void

Runs when handshake is denied

NetLobby_OnError ( string reason ) : void

Runs when handshake error occrus

NetLobby_OnExpired ( string reason ) : void

Runs when handshake expired

NetLobby_OnSucces ( string reason ) : void

Runs when lobby succes

NetworkManager ( ) : System

Constructor for this component

SetPlayerId ( String id ) : void

When player protocol has got user info, set the id

SetStep ( AuthenticationStatus status ) : void

Sets authentication setp

_foundAServerCallbackMethod ( object sender, EventArgs e ) : void

Event handler for completion of server retrieval

Method Details

AsyncConnect() public méthode

Starts connecting with username and password
public AsyncConnect ( String username, String password ) : void
username String username
password String password
Résultat void

AsyncFindNearbyServer() public méthode

Async finds new server
public AsyncFindNearbyServer ( ) : void
Résultat void

AsyncFindNearbyServer() public méthode

Starts finding a nearby server asynchronously
public AsyncFindNearbyServer ( System.Boolean newServer ) : void
newServer System.Boolean
Résultat void

Authenticate() public méthode

Starts authenticating the user
public Authenticate ( NetConnection connection, String username, String password ) : void
connection Lidgren.Network.NetConnection
username String
password String
Résultat void

Connect() public méthode

Connects to an endpoint
public Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint
Résultat void

Disconnect() public méthode

Disconnects client and resets connecting status
public Disconnect ( String message ) : void
message String message to disconnect with
Résultat void

Initialize() public méthode

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
Résultat void

Loop() public méthode

public Loop ( ) : void
Résultat void

SetupLobby() public méthode

Setups lobby events
public SetupLobby ( ) : void
Résultat void