C# 클래스 Chat_Server.ChatServer

파일 보기 프로젝트 열기: ThomasMoreCollege/CinderellaMGS 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
htConnections System.Collections.Hashtable
htUsers System.Collections.Hashtable

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
KeepListening ( ) : void

메소드 상세

AddUser() 공개 정적인 메소드

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

ChatServer() 공개 메소드

public ChatServer ( IPAddress address ) : System
address System.Net.IPAddress
리턴 System

OnStatusChanged() 공개 정적인 메소드

public static OnStatusChanged ( StatusChangedEventArgs e ) : void
e StatusChangedEventArgs
리턴 void

RemoveUser() 공개 정적인 메소드

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

SendAdminMessage() 공개 정적인 메소드

public static SendAdminMessage ( string Message ) : void
Message string
리턴 void

SendMessage() 공개 정적인 메소드

public static SendMessage ( string From, string Message ) : void
From string
Message string
리턴 void

StartListening() 공개 메소드

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

StopListening() 공개 메소드

public StopListening ( ) : void
리턴 void

프로퍼티 상세

htConnections 공개적으로 정적으로 프로퍼티

public static Hashtable,System.Collections htConnections
리턴 System.Collections.Hashtable

htUsers 공개적으로 정적으로 프로퍼티

public static Hashtable,System.Collections htUsers
리턴 System.Collections.Hashtable