C# Class Chat_Server.ChatServer

Datei anzeigen Open project: ThomasMoreCollege/CinderellaMGS 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

Below is the implementation of the chat server listening for connection.

StopListening ( ) : 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

Below is the implementation of the chat server listening for connection.
public StartListening ( ) : void
return void

StopListening() public method

public StopListening ( ) : void
return void

Property Details

htConnections public_oe static_oe property

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

htUsers public_oe static_oe property

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