C# 클래스 Servidor.Negocio.ServidorBase

Clase abstracta que representa al servidor central que espera conexiones de los clientes.
파일 보기 프로젝트 열기: jj-gallardo/CRat

공개 프로퍼티들

프로퍼티 타입 설명
Clientes List

보호된 프로퍼티들

프로퍼티 타입 설명
_listener System.Net.Sockets.TcpListener
_listenerThread Thread
_online int
port int

공개 메소드들

메소드 설명
IniciarEscuchaDefaultPort ( ) : void
PararEscucha ( ) : void

보호된 메소드들

메소드 설명
EventoClienteDesconectado ( Conexion client ) : void
EventoDatosRecibidos ( Conexion client, NetData objetoRecibido ) : void

비공개 메소드들

메소드 설명
EscucharConexiones ( ) : void

메소드 상세

EventoClienteDesconectado() 보호된 추상적인 메소드

protected abstract EventoClienteDesconectado ( Conexion client ) : void
client Conexion
리턴 void

EventoDatosRecibidos() 보호된 추상적인 메소드

protected abstract EventoDatosRecibidos ( Conexion client, NetData objetoRecibido ) : void
client Conexion
objetoRecibido Common.Lib.NetData
리턴 void

IniciarEscuchaDefaultPort() 공개 메소드

public IniciarEscuchaDefaultPort ( ) : void
리턴 void

PararEscucha() 공개 메소드

public PararEscucha ( ) : void
리턴 void

프로퍼티 상세

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

public static List Clientes
리턴 List

_listener 보호되어 있는 프로퍼티

protected TcpListener,System.Net.Sockets _listener
리턴 System.Net.Sockets.TcpListener

_listenerThread 보호되어 있는 프로퍼티

protected Thread _listenerThread
리턴 Thread

_online 보호되어 있는 프로퍼티

protected int _online
리턴 int

port 보호되어 있는 프로퍼티

protected int port
리턴 int