Exemplo n.º 1
0
 public void StopPlayerConnectionSupport()
 {
     if (this.playerPort != -1)
     {
         Usbmuxd.StopIosProxy((ushort)this.playerPort);
     }
     this.playerPort = -1;
 }
Exemplo n.º 2
0
 public void StopRemoteSupport()
 {
     if (this.remotePort != -1)
     {
         Usbmuxd.StopIosProxy((ushort)this.remotePort);
     }
     this.remotePort = -1;
 }
Exemplo n.º 3
0
        private RemoteAddress StartIosProxy(ushort devicePort)
        {
            int num = 0x2774;

            if (num > 0xffff)
            {
                throw new ApplicationException();
            }
            for (ushort i = 0x2710; i < num; i = (ushort)(i + 1))
            {
                if (Usbmuxd.StartIosProxy(i, devicePort, this.id))
                {
                    return(new RemoteAddress("127.0.0.1", i));
                }
            }
            throw new ApplicationException("Couldn't start iproxy");
        }