C# Class Server.Server

Exibir arquivo Open project: porcellus/KomponensAlapuJatek Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
OnNeedLog ( ServerInfoEventArgs e ) : void

Private Methods

Method 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 method

protected OnNeedLog ( ServerInfoEventArgs e ) : void
e ServerInfoEventArgs
return void

Server() public method

public Server ( ) : System
return System

finish() public method

public finish ( Int32 currplayerid, Int32 otherplayerid ) : void
currplayerid Int32
otherplayerid Int32
return void

initializeGame() public method

public initializeGame ( Int32 starterplayerid, Int32 secondplayerid, Object gameField ) : bool
starterplayerid Int32
secondplayerid Int32
gameField Object
return bool

sendGameRequest() public method

public sendGameRequest ( Int32 player1id, Int32 player2id ) : bool
player1id Int32
player2id Int32
return bool

step() public method

public step ( Int32 currplayerid, Int32 otherplayerid, Object gameField ) : void
currplayerid Int32
otherplayerid Int32
gameField Object
return void

stopServer() public method

public stopServer ( ) : void
return void

stopserver() public method

public stopserver ( ) : void
return void

stratServer() public method

public stratServer ( String _ip, Int32 _port ) : void
_ip String
_port Int32
return void

stratserver() public method

public stratserver ( String _ip, Int32 _port ) : void
_ip String
_port Int32
return void