Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
socket.EndSend()は、送信されたバイト数を返します。どのインスタンスでsocket.BeginSendは、意図されたすべてのバイトを送信しませんか?
すべてがうまくいけば、決して:
アプリケーションがBeginSendを呼び出すと、システムは別のスレッドを使用して指定されたコールバックメソッドを実行し、Socketが要求されたバイト数を送信するか例外をスローするまでEndSendでブロックします。
送信中に予期しない接続が失われた場合、例外が発生します。