C# 클래스 Server.Server

파일 보기 프로젝트 열기: porcellus/KomponensAlapuJatek 1 사용 예제들

공개 메소드들

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

보호된 메소드들

메소드 설명
OnNeedLog ( ServerInfoEventArgs e ) : void

비공개 메소드들

메소드 설명
acceptConnection ( Int32 _inputsize ) : void
receiveCompleted ( IAsyncResult ar ) : void
recieveData ( Socket socket, Int32 inputsize ) : String
recieveReaction ( Socket socket, Int32 inputsize ) : bool
serializeObject ( Object obj ) : byte[]

메소드 상세

OnNeedLog() 보호된 메소드

protected OnNeedLog ( ServerInfoEventArgs e ) : void
e ServerInfoEventArgs
리턴 void

Server() 공개 메소드

public Server ( ) : System
리턴 System

finish() 공개 메소드

public finish ( Int32 currplayerid, Int32 otherplayerid ) : void
currplayerid Int32
otherplayerid Int32
리턴 void

initializeGame() 공개 메소드

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

sendGameRequest() 공개 메소드

public sendGameRequest ( Int32 player1id, Int32 player2id ) : bool
player1id Int32
player2id Int32
리턴 bool

step() 공개 메소드

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

stopServer() 공개 메소드

public stopServer ( ) : void
리턴 void

stopserver() 공개 메소드

public stopserver ( ) : void
리턴 void

stratServer() 공개 메소드

public stratServer ( String _ip, Int32 _port ) : void
_ip String
_port Int32
리턴 void

stratserver() 공개 메소드

public stratserver ( String _ip, Int32 _port ) : void
_ip String
_port Int32
리턴 void