Exemple #1
0
 /// <summary>
 /// Handles the ClientSessionTimeout event of the rtspServer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Simon.SharpStreaming.Core.TClientSessionEventArgs"/> instance containing the event data.</param>
 void rtspServer_ClientSessionTimeout(object sender, TClientSessionEventArgs e)
 {
     AddServerInfo(string.Format("Client [{0}:{1}] was time out.",
                                 e.SessionInfo.ClientSessionIP, e.SessionInfo.ClientSessionPort.ToString()));
 }
Exemple #2
0
 /// <summary>
 /// Handles the ClientSessionConnected event of the rtspServer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Simon.SharpStreaming.Core.TClientSessionEventArgs"/> instance containing the event data.</param>
 void rtspServer_ClientSessionConnected(object sender, TClientSessionEventArgs e)
 {
     AddClientInfo(e.SessionInfo);
     AddServerInfo(string.Format("Client [{0}:{1}] was connected.",
                                 e.SessionInfo.ClientSessionIP, e.SessionInfo.ClientSessionPort.ToString()));
 }
Exemple #3
0
 /// <summary>
 /// Handles the ClientSessionUpdated event of the rtspServer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Simon.SharpStreamingServer.Core.TClientSessionEventArgs"/> instance containing the event data.</param>
 void rtspServer_ClientSessionUpdated(object sender, TClientSessionEventArgs e)
 {
     UpdateClientInfo(e.SessionInfo);
     AddServerInfo(string.Format("Client [{0}:{1}] sent a [{2}] request.",
                                 e.SessionInfo.ClientSessionIP, e.SessionInfo.ClientSessionPort.ToString(), e.SessionInfo.SessionState));
 }