C# Class DarkEmu_GameServer.ServerSocket

Mostra file Open project: CarlosX/DarkEmu Class Usage Examples

Public Methods

Method Description
AddClient ( Socket socket ) : void
Close ( ) : void
CountPlayers ( ) : int
DeleteClient ( int Index ) : void
DisconnectSocket ( int Index ) : void
FindIndex ( Socket socket ) : int
GetSocket ( int Index ) : Socket
Send ( byte buffer, int Index ) : void
SendPacketIfItemIsSpawned ( byte tmpBuffer, int Index_ ) : void
SendPacketIfMonsterIsSpawned ( byte tmpBuffer, int Index_ ) : void
SendPacketIfPlayerIsSpawned ( byte tmpBuffer, int Index_ ) : void
SendPacketInRange ( byte tmpBuffer, int Index_ ) : void
SendPacketInRangeExceptMe ( byte tmpBuffer, int Index_ ) : void
SendToAllExceptMe ( byte tmpBuffer, int Index ) : void
SendToAllIngame ( byte tmpBuffer ) : void
ServerSocket ( string IpAdress, int Port ) : System
Start ( ) : void

Private Methods

Method Description
OnClientConnect ( IAsyncResult ar ) : void
OnReceiveData ( IAsyncResult ar ) : void

Method Details

AddClient() public static method

public static AddClient ( Socket socket ) : void
socket Socket
return void

Close() public static method

public static Close ( ) : void
return void

CountPlayers() public static method

public static CountPlayers ( ) : int
return int

DeleteClient() public static method

public static DeleteClient ( int Index ) : void
Index int
return void

DisconnectSocket() public static method

public static DisconnectSocket ( int Index ) : void
Index int
return void

FindIndex() public static method

public static FindIndex ( Socket socket ) : int
socket Socket
return int

GetSocket() public static method

public static GetSocket ( int Index ) : Socket
Index int
return Socket

Send() public static method

public static Send ( byte buffer, int Index ) : void
buffer byte
Index int
return void

SendPacketIfItemIsSpawned() public static method

public static SendPacketIfItemIsSpawned ( byte tmpBuffer, int Index_ ) : void
tmpBuffer byte
Index_ int
return void

SendPacketIfMonsterIsSpawned() public static method

public static SendPacketIfMonsterIsSpawned ( byte tmpBuffer, int Index_ ) : void
tmpBuffer byte
Index_ int
return void

SendPacketIfPlayerIsSpawned() public static method

public static SendPacketIfPlayerIsSpawned ( byte tmpBuffer, int Index_ ) : void
tmpBuffer byte
Index_ int
return void

SendPacketInRange() public static method

public static SendPacketInRange ( byte tmpBuffer, int Index_ ) : void
tmpBuffer byte
Index_ int
return void

SendPacketInRangeExceptMe() public static method

public static SendPacketInRangeExceptMe ( byte tmpBuffer, int Index_ ) : void
tmpBuffer byte
Index_ int
return void

SendToAllExceptMe() public static method

public static SendToAllExceptMe ( byte tmpBuffer, int Index ) : void
tmpBuffer byte
Index int
return void

SendToAllIngame() public static method

public static SendToAllIngame ( byte tmpBuffer ) : void
tmpBuffer byte
return void

ServerSocket() public method

public ServerSocket ( string IpAdress, int Port ) : System
IpAdress string
Port int
return System

Start() public method

public Start ( ) : void
return void