private void OnBrowseRequestFinished(IAsyncResult asyncResult) { SsdpSocket socket = (SsdpSocket)asyncResult.AsyncState; socket.EndSendTo(asyncResult); AsyncReadResult(socket); }
private void OnByeBye(IAsyncResult asyncResult) { SsdpSocket socket = (SsdpSocket)asyncResult.AsyncState; try { socket.EndSendTo(asyncResult); } catch { } started = false; }
private void OnFinished(IAsyncResult asyncResult) { SsdpSocket socket = (SsdpSocket)asyncResult.AsyncState; socket.EndSendTo(asyncResult); }