コード例 #1
0
 public static void Awake(this NetInnerComponent self, IPEndPoint ipEndPoint)
 {
     self.Awake(NetworkProtocol.TCP, ipEndPoint);
     self.MessagePacker     = new ProtobufPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
     self.AppType           = self.Entity.GetComponent <StartConfigComponent>().StartConfig.AppType;
 }
コード例 #2
0
 public static void Awake(this NetInnerComponent self, string address)
 {
     self.Awake(NetworkProtocol.TCP, address);
     self.MessagePacker     = new MongoPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
     self.AppType           = StartConfigComponent.Instance.StartConfig.AppType;
 }
コード例 #3
0
 public static void Awake(this NetInnerComponent self)
 {
     self.Awake(NetworkProtocol.TCP);
     self.MessagePacker     = new MongoPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
     self.AppType           = self.GetComponent <StartConfigComponent>().StartConfig.AppType;
 }
コード例 #4
0
 public static void Awake(this NetInnerComponent self)
 {
     self.Awake(NetworkProtocol.TCP, Packet.PacketSizeLength4);
     self.MessagePacker     = new MongoPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
     self.AppType           = StartConfigComponent.Instance.StartConfig.AppType;
 }
コード例 #5
0
 public static void Awake(this NetInnerComponent self, string address)
 {
     //初始化 也是Tcp协议 包体长度 用4个字节表示
     self.Awake(NetworkProtocol.TCP, address, Packet.PacketSizeLength4);
     //内网通信 使用的是Bson进行序列化和反序列化的
     self.MessagePacker     = new MongoPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
     self.AppType           = StartConfigComponent.Instance.StartConfig.AppType;
 }
コード例 #6
0
 public static void Awake(this NetInnerComponent self, IPEndPoint ipEndPoint)
 {
     self.Awake(NetworkProtocol.TCP, ipEndPoint);
     self.MessagePacker     = new MongoPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
 }
コード例 #7
0
 public static void Awake(this NetInnerComponent self, string host, int port)
 {
     self.Awake(NetworkProtocol.TCP, host, port);
     self.MessagePacker     = new MongoPacker();
     self.MessageDispatcher = new InnerMessageDispatcher();
 }