private void createTerminal(int alPort)
        {
            m_serverTerminal = new ServerTerminal();

            m_serverTerminal.MessageRecived   += m_Terminal_MessageRecived;
            m_serverTerminal.ClientConnect    += m_Terminal_ClientConnected;
            m_serverTerminal.ClientDisconnect += m_Terminal_ClientDisConnected;

            m_serverTerminal.StartListen(alPort);
        }
Esempio n. 2
0
        private void createTerminal(int alPort)
        {
            m_ServerTerminal = new ServerTerminal();

            m_ServerTerminal.MessageRecived   += new MessageRecivedDelegate(m_Terminal_MessageRecived);
            m_ServerTerminal.ClientConnect    += new ConnectDelegate(m_Terminal_ClientConnected);
            m_ServerTerminal.ClientDisconnect += new DisconnectDelegate(m_Terminal_ClientDisConnected);

            m_ServerTerminal.StartListen(alPort);
        }
 private void Init(Socket clientSocket, ServerTerminal ParentST, ReceiveMode RecMode)
 {
     ParentServerTerminal = ParentST;
     _myReceiveMode       = RecMode;
     _FirstConnected      = DateTime.Now;
     mySocket             = clientSocket;
     _mySocketHandleInt64 = mySocket.Handle.ToInt64();
     mySocketIO           = new SocketIO(clientSocket, RecMode);
     // Register for events
     mySocketIO.TxMessageReceived += OnTxMessageReceived;
     mySocketIO.MessageSent       += OnMessageSent;
     mySocketIO.dbMessageReceived += OndbMessageReceived;
 }
 public ConnectedClient(Socket clientSocket, ServerTerminal ParentST, ReceiveMode RecMode)
 {
     Init(clientSocket, ParentST, RecMode);
 }
 public ConnectedClient(Socket clientSocket, ServerTerminal ParentST)
 {
     Init(clientSocket, ParentST, ReceiveMode.Handler);
 }