Esempio n. 1
0
        public void StartServer(ServerOfs ops)
        {
            if (ops == null)
            {
                ops = ServerOfs.defaultServerOfs;
            }

            if (ops.callBackObj == null)
            {
                throw new NullReferenceException("callBackObj is null!");
            }

            lock (m_generalLock)
            {
                m_serverOfs = ops;
            }

            Start();
        }
Esempio n. 2
0
 public AsyncTcpServer(AsyncTcpServer b)
     : base(b)
 {
     m_port      = b.m_port;
     m_serverOfs = b.m_serverOfs;
 }