Beispiel #1
0
 /// <summary>
 /// 创建网络
 /// </summary>
 /// <typeparam name="T">网络的类型</typeparam>
 /// <param name="t_NetworkName">网络的名字</param>
 /// <param name="t_IP">IP</param>
 /// <param name="t_Port">Port</param>
 /// <param name="t_INetworkPacketQueue">网络消息包队列</param>
 /// <param name="t_AddressFamily">寻址方案</param>
 /// <returns>网络的类型对应的实例</returns>
 public T CreateNetwork <T>(string t_NetworkName, string t_IP, int t_Port, INetworkPacketQueue t_INetworkPacketQueue = null, AddressFamily t_AddressFamily = AddressFamily.InterNetwork) where T : INetwork
 {
     return(m_INetworkManager.CreateNetwork <T>(t_NetworkName, t_IP, t_Port, t_INetworkPacketQueue, t_AddressFamily));
 }