C# Class Chat_Server.ChatServer

Afficher le fichier Open project: ThomasMoreCollege/CinderellaMGS Class Usage Examples

Méthodes publiques

Свойство Type Description
htConnections System.Collections.Hashtable
htUsers System.Collections.Hashtable

Méthodes publiques

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

Méthode Description
KeepListening ( ) : void

Method Details

AddUser() public static méthode

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

ChatServer() public méthode

public ChatServer ( IPAddress address ) : System
address System.Net.IPAddress
Résultat System

OnStatusChanged() public static méthode

public static OnStatusChanged ( StatusChangedEventArgs e ) : void
e StatusChangedEventArgs
Résultat void

RemoveUser() public static méthode

public static RemoveUser ( TcpClient tcpUser ) : void
tcpUser System.Net.Sockets.TcpClient
Résultat void

SendAdminMessage() public static méthode

public static SendAdminMessage ( string Message ) : void
Message string
Résultat void

SendMessage() public static méthode

public static SendMessage ( string From, string Message ) : void
From string
Message string
Résultat void

StartListening() public méthode

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

StopListening() public méthode

public StopListening ( ) : void
Résultat void

Property Details

htConnections public_oe static_oe property

public static Hashtable,System.Collections htConnections
Résultat System.Collections.Hashtable

htUsers public_oe static_oe property

public static Hashtable,System.Collections htUsers
Résultat System.Collections.Hashtable