C# 클래스 Server.Connector

파일 보기 프로젝트 열기: porcellus/KomponensAlapuJatek

공개 프로퍼티들

프로퍼티 타입 설명
clientport System.Int32
playerip String

공개 메소드들

메소드 설명
Connector ( ) : System
connectoServer ( String ip, Int32 port, String name, String gametype ) : void
getLobby ( String gametype ) : String[]
requestGame ( String opponentip, Int32 opponentport, String myname ) : void
sendRequestreply ( String reply ) : void
step ( Object step ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnConnectionAccept ( ConnectionAcceptEventArgs e ) : void
OnConnectionRequest ( ConnectionRequestEventArgs e ) : void
OnStep ( StepEventArgs e ) : void

비공개 메소드들

메소드 설명
AcceptCallback ( IAsyncResult ar ) : void
Combine ( byte first, byte second ) : byte[]
ConnectCallback ( IAsyncResult ar ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ReadCallback ( IAsyncResult ar ) : void
Send ( Socket client, String data ) : void
Send ( Socket client, byte data ) : void
SendCallback ( IAsyncResult ar ) : void
deserializeToObject ( byte bytes, int offset ) : object
readStream ( Stream stream, int readsize ) : String
serializeObject ( Object obj ) : byte[]
writeStream ( Stream stream, String message ) : void

메소드 상세

Connector() 공개 메소드

public Connector ( ) : System
리턴 System

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

OnConnectionAccept() 보호된 메소드

protected OnConnectionAccept ( ConnectionAcceptEventArgs e ) : void
e Connector.ConnectionAcceptEventArgs
리턴 void

OnConnectionRequest() 보호된 메소드

protected OnConnectionRequest ( ConnectionRequestEventArgs e ) : void
e Connector.ConnectionRequestEventArgs
리턴 void

OnStep() 보호된 메소드

protected OnStep ( StepEventArgs e ) : void
e Connector.StepEventArgs
리턴 void

connectoServer() 공개 메소드

public connectoServer ( String ip, Int32 port, String name, String gametype ) : void
ip String
port System.Int32
name String
gametype String
리턴 void

getLobby() 공개 메소드

public getLobby ( String gametype ) : String[]
gametype String
리턴 String[]

requestGame() 공개 메소드

public requestGame ( String opponentip, Int32 opponentport, String myname ) : void
opponentip String
opponentport System.Int32
myname String
리턴 void

sendRequestreply() 공개 메소드

public sendRequestreply ( String reply ) : void
reply String
리턴 void

step() 공개 메소드

public step ( Object step ) : void
step Object
리턴 void

프로퍼티 상세

clientport 공개적으로 프로퍼티

public Int32,System clientport
리턴 System.Int32

playerip 공개적으로 프로퍼티

public String playerip
리턴 String