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(); }
public AsyncTcpServer(AsyncTcpServer b) : base(b) { m_port = b.m_port; m_serverOfs = b.m_serverOfs; }