C# Class ChatRoom.ChatServer

Show file Open project: cclay/spaceconquest Class Usage Examples

Public Properties

Property Type Description
htConnections System.Collections.Hashtable
htUsers System.Collections.Hashtable

Public Methods

Method Description
AddUser ( TcpClient tcpUser, string strUsername ) : void
ChatServer ( IPAddress address ) : System
OnStatusChanged ( StatusChangedEventArgs e ) : void
RemoveUser ( TcpClient tcpUser ) : void
SendAdminMessage ( string Message ) : void
SendMessage ( string From, string Message ) : void
StartListening ( ) : void

Private Methods

Method Description
KeepListening ( ) : void

Method Details

AddUser() public static method

public static AddUser ( TcpClient tcpUser, string strUsername ) : void
tcpUser System.Net.Sockets.TcpClient
strUsername string
return void

ChatServer() public method

public ChatServer ( IPAddress address ) : System
address System.Net.IPAddress
return System

OnStatusChanged() public static method

public static OnStatusChanged ( StatusChangedEventArgs e ) : void
e StatusChangedEventArgs
return void

RemoveUser() public static method

public static RemoveUser ( TcpClient tcpUser ) : void
tcpUser System.Net.Sockets.TcpClient
return void

SendAdminMessage() public static method

public static SendAdminMessage ( string Message ) : void
Message string
return void

SendMessage() public static method

public static SendMessage ( string From, string Message ) : void
From string
Message string
return void

StartListening() public method

public StartListening ( ) : void
return void

Property Details

htConnections public static property

public static Hashtable,System.Collections htConnections
return System.Collections.Hashtable

htUsers public static property

public static Hashtable,System.Collections htUsers
return System.Collections.Hashtable