Beispiel #1
0
        void SendOneThread()
        {
            try {
                UdpClient client = new UdpClient(new IPEndPoint(IPAddress.Any, 0));
#if false
                if (NetFindfTransfer.Ping(ip_addr))
                {
                    client.Send(msg, msg.Length, endpoint);
                }
#else
                client.Send(msg, msg.Length, endpoint);
                client.Close();
#endif

                // Debug.Write("\nIP地址:{0}",ip_addr);
            }catch (Exception e) {
            }
        }
Beispiel #2
0
 public ServerCloudPrint()
 {
     this.mNetServer   = new NetFindfTransfer();
     this.mPrintServer = new PrintServer();
 }
 public void SetServer(ServerCloudPrint server)
 {
     this.mNetInfo = server.NetServer;
     this.mServer  = server;
 }