C# 클래스 VideoCallServer.TCPServer

TCPServer is the Server class. When "StartServer" method is called this Server object tries to connect to a IP Address specified on a port configured. Then the server start listening for client socket requests. As soon as a requestcomes in from any client then a Client Socket Listening thread will be started. That thread is responsible for client communication.
파일 보기 프로젝트 열기: AnthonyNystrom/MobiVU 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_socketListenersList ArrayList

공개 메소드들

메소드 설명
GetNumberConnections ( ) : int
StartServer ( ) : void

Method that starts TCP/IP Server.

StopServer ( ) : void

Method that stops the TCP/IP Server.

TCPServer ( IPAddress serverIP ) : System
TCPServer ( IPAddress serverIP, int port ) : System
TCPServer ( IPEndPoint ipNport ) : System
TCPServer ( int iPort ) : System

Constructors.

비공개 메소드들

메소드 설명
Init ( IPEndPoint ipNport ) : void

Init method that create a server (TCP Listener) Object based on the IP Address and Port information that is passed in.

PurgingThreadStart ( ) : void

Thread method for purging Client Listeneres that are marked for deletion (i.e. clients with socket connection closed). This thead is a low priority thread and sleeps for 10 seconds and then check for any client SocketConnection obects which are obselete and marked for deletion.

ServerThreadStart ( ) : void

TCP/IP Server Thread that is listening for clients.

StopAllSocketListers ( ) : void

Method that stops all clients and clears the list.

메소드 상세

GetNumberConnections() 공개 메소드

public GetNumberConnections ( ) : int
리턴 int

StartServer() 공개 메소드

Method that starts TCP/IP Server.
public StartServer ( ) : void
리턴 void

StopServer() 공개 메소드

Method that stops the TCP/IP Server.
public StopServer ( ) : void
리턴 void

TCPServer() 공개 메소드

public TCPServer ( IPAddress serverIP ) : System
serverIP System.Net.IPAddress
리턴 System

TCPServer() 공개 메소드

public TCPServer ( IPAddress serverIP, int port ) : System
serverIP System.Net.IPAddress
port int
리턴 System

TCPServer() 공개 메소드

public TCPServer ( IPEndPoint ipNport ) : System
ipNport System.Net.IPEndPoint
리턴 System

TCPServer() 공개 메소드

Constructors.
public TCPServer ( int iPort ) : System
iPort int
리턴 System

프로퍼티 상세

m_socketListenersList 공개적으로 프로퍼티

public ArrayList m_socketListenersList
리턴 ArrayList