From dfb09e3da0eb265361d08b2419c8ece1a46b8dcf Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 16 Aug 2017 13:13:56 +0900 Subject: [PATCH] [Modify] Edit it --- .../Server/WebSocketSessionManager.cs | 74 ++++++++++++++++--- 1 file changed, 65 insertions(+), 9 deletions(-) diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs index fac22909..b18c8a27 100644 --- a/websocket-sharp/Server/WebSocketSessionManager.cs +++ b/websocket-sharp/Server/WebSocketSessionManager.cs @@ -1196,26 +1196,82 @@ namespace WebSocketSharp.Server } /// - /// Sends binary data from the specified asynchronously to - /// the client on the session with the specified . + /// Sends the data from asynchronously to + /// the client using the specified session. /// /// - /// This method doesn't wait for the send to be complete. + /// + /// The data is sent as the binary data. + /// + /// + /// This method does not wait for the send to be complete. + /// /// /// - /// A from which contains the binary data to send. + /// A instance from which to read the data to send. /// /// - /// An that represents the number of bytes to send. + /// An that specifies the number of bytes to send. /// /// - /// A that represents the ID of the session to find. + /// A that represents the ID of the session. /// /// - /// An Action<bool> delegate that references the method(s) called when - /// the send is complete. A passed to this delegate is true - /// if the send is complete successfully. + /// + /// An Action<bool> delegate or + /// if not needed. + /// + /// + /// The delegate invokes the method called when the send is complete. + /// + /// + /// true is passed to the method if the send has done with + /// no error; otherwise, false. + /// /// + /// + /// + /// is . + /// + /// + /// -or- + /// + /// + /// is . + /// + /// + /// + /// + /// is an empty string. + /// + /// + /// -or- + /// + /// + /// The session could not be found. + /// + /// + /// -or- + /// + /// + /// cannot be read. + /// + /// + /// -or- + /// + /// + /// is less than 1. + /// + /// + /// -or- + /// + /// + /// No data could be read from . + /// + /// + /// + /// The current state of the WebSocket connection is not Open. + /// public void SendToAsync ( Stream stream, int length, string id, Action completed )