public iRemote() { this.addTv = new UPnPCallbackFunc(TvAddedCallback); this.delTv = new UPnPCallbackFunc(TvDeletedCallback); this.packetCb = new IPacketParser(PacketParser); this.connectOk = new IRemoteCallback(connectSuccess); this.connectFail = new IRemoteCallback(connectionFail); this.authentic = new IRemoteCallback(authentication); this.disc = new IRemoteCallback(disconnect); this.authenticFail = new IRemoteCallback(authenticationFail); this.authenticFull = new IRemoteCallback(authenticationFull); this.authenticDeny = new IRemoteCallback(authenticationDeny); iRemote.InstallUPnPCallback(this.addTv, this.delTv); int num = iRemote.StartUPnP(new StringBuilder("Mobile Simulator")); }
public static extern void SetConnectCallback(IRemoteCallback connectSuccess, IRemoteCallback connectFail, IRemoteCallback disconnect, IRemoteCallback authentication, IRemoteCallback authenticationFail, IRemoteCallback authenticationDeny, IRemoteCallback authenticationFull);