C# Class GameCreatorGroupProject.MainClient

Datei anzeigen Open project: HeroOfTheWinds/CS-350-410-431-Group-Project Class Usage Examples

Public Properties

Property Type Description
available Queue
clients List

Public Methods

Method Description
connectClient ( byte serverType, uint serverID, uint clientID ) : bool
connectClient ( string serverIP ) : void
disconnect ( ) : void
disconnectClient ( TCPClient c ) : void
getAvailable ( ) : TCPClient
getThisClientID ( ) : uint
getUsername ( ) : string
isConnected ( ) : bool
isOnline ( uint clientID ) : bool
requestChatServer ( ) : uint
requestRTCServer ( ) : uint
requestResourceServer ( ) : uint
setUsername ( string name ) : void

Private Methods

Method Description
onConnect ( IAsyncResult ar ) : bool
send ( byte type ) : uint
startClient ( object connectClient ) : void

Method Details

connectClient() public method

public connectClient ( byte serverType, uint serverID, uint clientID ) : bool
serverType byte
serverID uint
clientID uint
return bool

connectClient() public method

public connectClient ( string serverIP ) : void
serverIP string
return void

disconnect() public method

public disconnect ( ) : void
return void

disconnectClient() public method

public disconnectClient ( TCPClient c ) : void
c TCPClient
return void

getAvailable() public method

public getAvailable ( ) : TCPClient
return TCPClient

getThisClientID() public static method

public static getThisClientID ( ) : uint
return uint

getUsername() public static method

public static getUsername ( ) : string
return string

isConnected() public method

public isConnected ( ) : bool
return bool

isOnline() public method

public isOnline ( uint clientID ) : bool
clientID uint
return bool

requestChatServer() public method

public requestChatServer ( ) : uint
return uint

requestRTCServer() public method

public requestRTCServer ( ) : uint
return uint

requestResourceServer() public method

public requestResourceServer ( ) : uint
return uint

setUsername() public static method

public static setUsername ( string name ) : void
name string
return void

Property Details

available static_oe public_oe property

static public Queue available
return Queue

clients public_oe static_oe property

public static List clients
return List