public NetLink(int nLinkID, INetLinkSink linkSink, INetLinkMonitor monitor = null) { m_NetLinkSink = linkSink; m_NetLinkMonitor = monitor; m_nLinkID = nLinkID; NetManager.Instance().NetLinkSink = linkSink; NetManager.Instance().NetLinkMonitor = monitor; }
public NetLink(int nLinkID, INetLinkSink linkSink, INetLinkMonitor monitor = null) { m_NetLinkSink = linkSink; m_NetLinkMonitor = monitor; m_nLinkID = nLinkID; //TODO // NetManager.Instance().NetLinkSink = linkSink; //NetManager.Instance().NetLinkMonitor = monitor; }
// 创建网络连接 public INetLink CreateNetLink(INetLinkSink linkSink, INetLinkMonitor monitor = null) { m_NetLink = new NetLink(++m_nLinkIDSeed, linkSink, monitor); if (m_NetLink == null) { Utility.Log.Error("CreateNetLink失败!"); return(null); } return(m_NetLink); }