예제 #1
0
 internal void ConnectTo(Windows.Networking.HostName host, UInt16 port)
 {
     directConn                       = new TvConnection(host, port);
     directConn.Connecting           += new TvConnection.ConnectingDelegate(directConn_Connecting);
     directConn.Connected            += new TvConnection.ConnectedDelegate(directConn_Connected);
     directConn.Disconnected         += new TvConnection.DisconnectedDelegate(directConn_Disconnected);
     directConn.Registering          += new TvConnection.RegisteringDelegate(directConn_Registering);
     directConn.RegistrationFailed   += new TvConnection.RegistrationFailedDelegate(directConn_RegistrationFailed);
     directConn.RegistrationAccepted += new TvConnection.RegistrationAcceptedDelegate(directConn_RegistrationAccepted);
     directConn.RegistrationDenied   += new TvConnection.RegistrationDeniedDelegate(directConn_RegistrationDenied);
     directConn.RegistrationTimedOut += new TvConnection.RegistrationTimedOutDelegate(directConn_RegistrationTimedOut);
     directConn.RegistrationWaiting  += new TvConnection.RegistrationWaitingDelegate(directConn_RegistrationWaiting);
     directConn.Connect();
 }
예제 #2
0
 internal void ConnectTo(Windows.Networking.HostName host, UInt16 port)
 {
     directConn = new TvConnection(host, port);
     directConn.Connecting += new TvConnection.ConnectingDelegate(directConn_Connecting);
     directConn.Connected += new TvConnection.ConnectedDelegate(directConn_Connected);
     directConn.Disconnected += new TvConnection.DisconnectedDelegate(directConn_Disconnected);
     directConn.Registering += new TvConnection.RegisteringDelegate(directConn_Registering);
     directConn.RegistrationFailed += new TvConnection.RegistrationFailedDelegate(directConn_RegistrationFailed);
     directConn.RegistrationAccepted += new TvConnection.RegistrationAcceptedDelegate(directConn_RegistrationAccepted);
     directConn.RegistrationDenied += new TvConnection.RegistrationDeniedDelegate(directConn_RegistrationDenied);
     directConn.RegistrationTimedOut += new TvConnection.RegistrationTimedOutDelegate(directConn_RegistrationTimedOut);
     directConn.RegistrationWaiting += new TvConnection.RegistrationWaitingDelegate(directConn_RegistrationWaiting);
     directConn.Connect();
 }