[Modify] Edit it
This commit is contained in:
parent
0e9ec9bf89
commit
8a04234df4
@ -686,22 +686,53 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends binary data from the specified <see cref="Stream"/> asynchronously to
|
/// Sends the specified <paramref name="length"/> of data from
|
||||||
|
/// the specified <paramref name="stream"/> asynchronously to
|
||||||
/// every client in the WebSocket services.
|
/// every client in the WebSocket services.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This method doesn't wait for the send to be complete.
|
/// This method does not wait for the send to be complete.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <param name="stream">
|
/// <param name="stream">
|
||||||
/// A <see cref="Stream"/> from which contains the binary data to send.
|
/// A <see cref="Stream"/> from which reads the binary data to send.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="length">
|
/// <param name="length">
|
||||||
/// An <see cref="int"/> that represents the number of bytes to send.
|
/// An <see cref="int"/> that specifies the number of bytes to
|
||||||
|
/// read and send.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <param name="completed">
|
/// <param name="completed">
|
||||||
/// An <see cref="Action"/> delegate that references the method(s) called when
|
/// <para>
|
||||||
/// the send is complete.
|
/// An <see cref="Action"/> delegate or
|
||||||
|
/// <see langword="null"/> if not needed.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// That delegate invokes the method called when
|
||||||
|
/// the send is complete.
|
||||||
|
/// </para>
|
||||||
/// </param>
|
/// </param>
|
||||||
|
/// <exception cref="InvalidOperationException">
|
||||||
|
/// The current state of the manager is not Start.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentNullException">
|
||||||
|
/// <paramref name="stream"/> is <see langword="null"/>.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentException">
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="stream"/> cannot be read.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="length"/> is less than 1.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// No data could be read from <paramref name="stream"/>.
|
||||||
|
/// </para>
|
||||||
|
/// </exception>
|
||||||
public void BroadcastAsync (Stream stream, int length, Action completed)
|
public void BroadcastAsync (Stream stream, int length, Action completed)
|
||||||
{
|
{
|
||||||
if (_state != ServerState.Start) {
|
if (_state != ServerState.Start) {
|
||||||
|
Loading…
Reference in New Issue
Block a user