Ends a pending asynchronous send.
The number of bytes sent to the Socket on success.
Socket error otherwise.
To maintain the asynchronous nature of the operation, call this method from the callback delegate.
You can pass either the IAsyncResult returned from
BeginSend or the callback delegate used as an input parameter to
BeginSend as the
This method frees any resources allocated by the
BeginSend method. The EndSend method blocks until the send ends.
The EndSend method frees any resources allocated by the BeginSend method.
Please note that you should not call this method for SSLSocket class but for derived classes only.