C# Class Server.Server

Afficher le fichier Open project: porcellus/KomponensAlapuJatek Class Usage Examples

Méthodes publiques

Méthode Description
Server ( ) : System
finish ( Int32 currplayerid, Int32 otherplayerid ) : void
initializeGame ( Int32 starterplayerid, Int32 secondplayerid, Object gameField ) : bool
sendGameRequest ( Int32 player1id, Int32 player2id ) : bool
step ( Int32 currplayerid, Int32 otherplayerid, Object gameField ) : void
stopServer ( ) : void
stopserver ( ) : void
stratServer ( String _ip, Int32 _port ) : void
stratserver ( String _ip, Int32 _port ) : void

Méthodes protégées

Méthode Description
OnNeedLog ( ServerInfoEventArgs e ) : void

Private Methods

Méthode Description
acceptConnection ( Int32 _inputsize ) : void
receiveCompleted ( IAsyncResult ar ) : void
recieveData ( Socket socket, Int32 inputsize ) : String
recieveReaction ( Socket socket, Int32 inputsize ) : bool
serializeObject ( Object obj ) : byte[]

Method Details

OnNeedLog() protected méthode

protected OnNeedLog ( ServerInfoEventArgs e ) : void
e ServerInfoEventArgs
Résultat void

Server() public méthode

public Server ( ) : System
Résultat System

finish() public méthode

public finish ( Int32 currplayerid, Int32 otherplayerid ) : void
currplayerid Int32
otherplayerid Int32
Résultat void

initializeGame() public méthode

public initializeGame ( Int32 starterplayerid, Int32 secondplayerid, Object gameField ) : bool
starterplayerid Int32
secondplayerid Int32
gameField Object
Résultat bool

sendGameRequest() public méthode

public sendGameRequest ( Int32 player1id, Int32 player2id ) : bool
player1id Int32
player2id Int32
Résultat bool

step() public méthode

public step ( Int32 currplayerid, Int32 otherplayerid, Object gameField ) : void
currplayerid Int32
otherplayerid Int32
gameField Object
Résultat void

stopServer() public méthode

public stopServer ( ) : void
Résultat void

stopserver() public méthode

public stopserver ( ) : void
Résultat void

stratServer() public méthode

public stratServer ( String _ip, Int32 _port ) : void
_ip String
_port Int32
Résultat void

stratserver() public méthode

public stratserver ( String _ip, Int32 _port ) : void
_ip String
_port Int32
Résultat void