C# Class Server.Connector

Afficher le fichier Open project: porcellus/KomponensAlapuJatek

Méthodes publiques

Свойство Type Description
clientport System.Int32
playerip String

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Private Methods

Méthode Description
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

Method Details

Connector() public méthode

public Connector ( ) : System
Résultat System

Dispose() protected méthode

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

OnConnectionAccept() protected méthode

protected OnConnectionAccept ( ConnectionAcceptEventArgs e ) : void
e Connector.ConnectionAcceptEventArgs
Résultat void

OnConnectionRequest() protected méthode

protected OnConnectionRequest ( ConnectionRequestEventArgs e ) : void
e Connector.ConnectionRequestEventArgs
Résultat void

OnStep() protected méthode

protected OnStep ( StepEventArgs e ) : void
e Connector.StepEventArgs
Résultat void

connectoServer() public méthode

public connectoServer ( String ip, Int32 port, String name, String gametype ) : void
ip String
port System.Int32
name String
gametype String
Résultat void

getLobby() public méthode

public getLobby ( String gametype ) : String[]
gametype String
Résultat String[]

requestGame() public méthode

public requestGame ( String opponentip, Int32 opponentport, String myname ) : void
opponentip String
opponentport System.Int32
myname String
Résultat void

sendRequestreply() public méthode

public sendRequestreply ( String reply ) : void
reply String
Résultat void

step() public méthode

public step ( Object step ) : void
step Object
Résultat void

Property Details

clientport public_oe property

public Int32,System clientport
Résultat System.Int32

playerip public_oe property

public String playerip
Résultat String