C# 클래스 SRPClient.NetworkManager

파일 보기 프로젝트 열기: SleeplessByte/lidgren-srp6a 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AsyncConnect() 공개 메소드

Starts connecting with username and password
public AsyncConnect ( String username, String password ) : void
username String username
password String password
리턴 void

AsyncFindNearbyServer() 공개 메소드

Async finds new server
public AsyncFindNearbyServer ( ) : void
리턴 void

AsyncFindNearbyServer() 공개 메소드

Starts finding a nearby server asynchronously
public AsyncFindNearbyServer ( System.Boolean newServer ) : void
newServer System.Boolean
리턴 void

Authenticate() 공개 메소드

Starts authenticating the user
public Authenticate ( NetConnection connection, String username, String password ) : void
connection Lidgren.Network.NetConnection
username String
password String
리턴 void

Connect() 공개 메소드

Connects to an endpoint
public Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint
리턴 void

Disconnect() 공개 메소드

Disconnects client and resets connecting status
public Disconnect ( String message ) : void
message String message to disconnect with
리턴 void

Initialize() 공개 메소드

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
리턴 void

Loop() 공개 메소드

public Loop ( ) : void
리턴 void

SetupLobby() 공개 메소드

Setups lobby events
public SetupLobby ( ) : void
리턴 void