示例#1
0
 public void Start()
 {
     if (IsPtP && LocalAddress != null)
     {
         if (LocalAddress.Protol == 0)
         {
             TcpServerSocket tcpServer = new TcpServerSocket();
             tcpServer.Bind(LocalAddress.Port);
             tcpServer.CallSrv += TcpServer_CallSrv;
         }
         else
         {
             UDPSocketPack uDP = new UDPSocketPack();
             uDP.Bind(LocalAddress.Port, LocalAddress.Address);
             uDP.UDPCall += UDP_UDPCall;
         }
     }
 }