<param name="group">The group <see cref="T:System.Net.IPAddress" />.</param>
<param name="ifindex">The local interface address.</param>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="ifindex" /> is less than 0.
--or-
+ <paramref name="ifindex" /> is less than 0.
+-or-
<paramref name="ifindex" /> is greater than 0x00000000FFFFFFFF.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="group" /> is <see langword="null" />.</exception>
<param name="group">The group <see cref="T:System.Net.IPAddress" />.</param>
<param name="mcint">The local <see cref="T:System.Net.IPAddress" />.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="group" /> is <see langword="null" />.
--or-
+ <paramref name="group" /> is <see langword="null" />.
+-or-
<paramref name="mcint" /> is <see langword="null" />.</exception>
</member>
<member name="P:System.Net.Sockets.MulticastOption.Group">
<summary>Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" />.</summary>
<param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
- -or-
- The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
- -or-
- The <paramref name="socket" /> parameter is in a nonblocking state.</exception>
+ <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
+-or-
+The <paramref name="socket" /> parameter is in a nonblocking state.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.#ctor(System.Net.Sockets.Socket,System.Boolean)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified <see cref="T:System.Net.Sockets.Socket" /> ownership.</summary>
<param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
<param name="ownsSocket">Set to <see langword="true" /> to indicate that the <see cref="T:System.Net.Sockets.NetworkStream" /> will take ownership of the <see cref="T:System.Net.Sockets.Socket" />; otherwise, <see langword="false" />.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
- -or-
- the value of the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
- -or-
- the <paramref name="socket" /> parameter is in a nonblocking state.</exception>
+ <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
+-or-
+the value of the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
+-or-
+the <paramref name="socket" /> parameter is in a nonblocking state.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.#ctor(System.Net.Sockets.Socket,System.IO.FileAccess)">
<summary>Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified access rights.</summary>
<param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
<param name="access">A bitwise combination of the <see cref="T:System.IO.FileAccess" /> values that specify the type of access given to the <see cref="T:System.Net.Sockets.NetworkStream" /> over the provided <see cref="T:System.Net.Sockets.Socket" />.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
- -or-
- the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
- -or-
- the <paramref name="socket" /> parameter is in a nonblocking state.</exception>
+ <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
+-or-
+the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
+-or-
+the <paramref name="socket" /> parameter is in a nonblocking state.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.#ctor(System.Net.Sockets.Socket,System.IO.FileAccess,System.Boolean)">
<summary>Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified access rights and the specified <see cref="T:System.Net.Sockets.Socket" /> ownership.</summary>
<param name="access">A bitwise combination of the <see cref="T:System.IO.FileAccess" /> values that specifies the type of access given to the <see cref="T:System.Net.Sockets.NetworkStream" /> over the provided <see cref="T:System.Net.Sockets.Socket" />.</param>
<param name="ownsSocket">Set to <see langword="true" /> to indicate that the <see cref="T:System.Net.Sockets.NetworkStream" /> will take ownership of the <see cref="T:System.Net.Sockets.Socket" />; otherwise, <see langword="false" />.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
- -or-
- The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
- -or-
- The <paramref name="socket" /> parameter is in a nonblocking state.</exception>
+ <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
+-or-
+The <paramref name="socket" /> parameter is in a nonblocking state.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
<summary>Begins an asynchronous read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
<param name="state">An object that contains any additional user-defined data.</param>
<returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</returns>
<exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
- -or-
- The <paramref name="offset" /> parameter is greater than the length of the <paramref name="buffer" /> paramater.
- -or-
- The <paramref name="size" /> is less than 0.
- -or-
- The <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
- <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
- -or-
- There was a failure while reading from the network.
- -or-
- An error occurred when accessing the socket.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
+-or-
+The <paramref name="offset" /> parameter is greater than the length of the <paramref name="buffer" /> paramater.
+-or-
+The <paramref name="size" /> is less than 0.
+-or-
+The <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
+ <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
+-or-
+There was a failure while reading from the network.
+-or-
+An error occurred when accessing the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
<param name="state">An object that contains any additional user-defined data.</param>
<returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</returns>
<exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
- -or-
- The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
- -or-
- The <paramref name="size" /> parameter is less than 0.
- -or-
- The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
- <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
- -or-
- There was a failure while writing to the network.
- -or-
- An error occurred when accessing the socket.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
+-or-
+The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
+-or-
+The <paramref name="size" /> parameter is less than 0.
+-or-
+The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
+ <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
+-or-
+There was a failure while writing to the network.
+-or-
+An error occurred when accessing the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
</member>
<member name="P:System.Net.Sockets.NetworkStream.CanRead">
<param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that represents an asynchronous call.</param>
<returns>The number of bytes read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</returns>
<exception cref="T:System.ArgumentException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
- -or-
- An error occurred when accessing the socket.</exception>
+ <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
+-or-
+An error occurred when accessing the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.EndWrite(System.IAsyncResult)">
<summary>Handles the end of an asynchronous write.</summary>
<param name="asyncResult">The <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
- -or-
- An error occurred while writing to the network.
- -or-
- An error occurred when accessing the socket.</exception>
+ <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
+-or-
+An error occurred while writing to the network.
+-or-
+An error occurred when accessing the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.Finalize">
<exception cref="T:System.ArgumentNullException">
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus <paramref name="offset" />.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.NetworkStream" /> does not support reading.</exception>
<exception cref="">An error occurred when accessing the socket.
<param name="offset">The location in <paramref name="buffer" /> from which to start writing data.</param>
<param name="size">The number of bytes to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
- -or-
- The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
- -or-
- The <paramref name="size" /> parameter is less than 0.
- -or-
- The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
+-or-
+The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
+-or-
+The <paramref name="size" /> parameter is less than 0.
+-or-
+The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.NetworkStream" /> does not support writing.</exception>
<exception cref="T:System.IO.IOException">An error occurred when accessing the socket.
-or-
<param name="cancellationToken">The token to monitor for cancellation requests.</param>
<returns>A task that represents the asynchronous write operation.</returns>
<exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
- -or-
- The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
- -or-
- The <paramref name="size" /> parameter is less than 0.
- -or-
- The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
+-or-
+The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
+-or-
+The <paramref name="size" /> parameter is less than 0.
+-or-
+The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.NetworkStream" /> does not support writing.</exception>
- <exception cref="T:System.IO.IOException">There was a failure while writing to the network.
- -or-
- An error occurred when accessing the socket.</exception>
+ <exception cref="T:System.IO.IOException">There was a failure while writing to the network.
+-or-
+An error occurred when accessing the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
</member>
<member name="M:System.Net.Sockets.NetworkStream.WriteAsync(System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)">
<param name="offset">The offset, in bytes, from the beginning of the <paramref name="buffer" /> to the location in the <paramref name="buffer" /> to start sending the data specified in the <paramref name="buffer" /> parameter.</param>
<param name="count">The number of bytes to send starting from the <paramref name="offset" /> parameter. If <paramref name="count" /> is zero, no bytes are sent.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter cannot be null</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> and <paramref name="count" /> parameters must be greater than or equal to zero.
- The <paramref name="offset" /> and <paramref name="count" /> must be less than the size of the buffer</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> and <paramref name="count" /> parameters must be greater than or equal to zero.
+The <paramref name="offset" /> and <paramref name="count" /> must be less than the size of the buffer</exception>
</member>
<member name="M:System.Net.Sockets.SendPacketsElement.#ctor(System.Byte[],System.Int32,System.Int32,System.Boolean)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SendPacketsElement" /> class using the specified range of the buffer with an option to combine this element with the next element in a single send request from the sockets layer to the transport.</summary>
<param name="count">The number bytes to send starting from the <paramref name="offset" /> parameter. If <paramref name="count" /> is zero, no bytes are sent.</param>
<param name="endOfPacket">A Boolean value that specifies that this element should not be combined with the next element in a single send request from the sockets layer to the transport. This flag is used for granular control of the content of each message on a datagram or message-oriented socket.</param>
<exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter cannot be null</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> and <paramref name="count" /> parameters must be greater than or equal to zero.
- The <paramref name="offset" /> and <paramref name="count" /> must be less than the size of the buffer</exception>
+ <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> and <paramref name="count" /> parameters must be greater than or equal to zero.
+The <paramref name="offset" /> and <paramref name="count" /> must be less than the size of the buffer</exception>
</member>
<member name="M:System.Net.Sockets.SendPacketsElement.#ctor(System.IO.FileStream)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SendPacketsElement" /> class using the specified <see cref="T:System.IO.FileStream" /> object.</summary>
<summary>Begins an asynchronous operation to accept an incoming connection attempt.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
- <exception cref="T:System.ArgumentException">An argument is not valid. This exception occurs if the buffer provided is not large enough. The buffer must be at least 2 * (sizeof(SOCKADDR_STORAGE + 16) bytes.
- This exception also occurs if multiple buffers are specified, the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> property is not null.</exception>
+ <exception cref="T:System.ArgumentException">An argument is not valid. This exception occurs if the buffer provided is not large enough. The buffer must be at least 2 * (sizeof(SOCKADDR_STORAGE + 16) bytes.
+This exception also occurs if multiple buffers are specified, the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> property is not null.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">An argument is out of range. The exception occurs if the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.Count" /> is less than 0.</exception>
- <exception cref="T:System.InvalidOperationException">An invalid operation was requested. This exception occurs if the accepting <see cref="T:System.Net.Sockets.Socket" /> is not listening for connections or the accepted socket is bound.
- You must call the <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> method before calling the <see cref="M:System.Net.Sockets.Socket.AcceptAsync(System.Net.Sockets.SocketAsyncEventArgs)" /> method.
- This exception also occurs if the socket is already connected or a socket operation was already in progress using the specified <paramref name="e" /> parameter.</exception>
+ <exception cref="T:System.InvalidOperationException">An invalid operation was requested. This exception occurs if the accepting <see cref="T:System.Net.Sockets.Socket" /> is not listening for connections or the accepted socket is bound.
+You must call the <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> method before calling the <see cref="M:System.Net.Sockets.Socket.AcceptAsync(System.Net.Sockets.SocketAsyncEventArgs)" /> method.
+This exception also occurs if the socket is already connected or a socket operation was already in progress using the specified <paramref name="e" /> parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.NotSupportedException">Windows XP or later is required for this method.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous <see cref="T:System.Net.Sockets.Socket" /> creation.</returns>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
<exception cref="T:System.NotSupportedException">Windows NT is required for this method.</exception>
- <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
- -or-
- The accepted socket is bound.</exception>
+ <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
+-or-
+The accepted socket is bound.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="receiveSize" /> is less than 0.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous <see cref="T:System.Net.Sockets.Socket" /> creation.</returns>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
<exception cref="T:System.NotSupportedException">Windows NT is required for this method.</exception>
- <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
- -or-
- The accepted socket is bound.</exception>
+ <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
+-or-
+The accepted socket is bound.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="receiveSize" /> is less than 0.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<returns>An <see cref="T:System.IAsyncResult" /> object that references the asynchronous <see cref="T:System.Net.Sockets.Socket" /> object creation.</returns>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
<exception cref="T:System.NotSupportedException">Windows NT is required for this method.</exception>
- <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
- -or-
- The accepted socket is bound.</exception>
+ <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
+-or-
+The accepted socket is bound.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="receiveSize" /> is less than 0.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">
<see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
</member>
<member name="M:System.Net.Sockets.Socket.BeginReceive(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.Sockets.SocketError@,System.AsyncCallback,System.Object)">
<exception cref="T:System.ObjectDisposedException">
<see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
</member>
<member name="M:System.Net.Sockets.Socket.BeginReceive(System.Collections.Generic.IList{System.ArraySegment{System.Byte}},System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)">
<param name="state">An object that contains state information for this request.</param>
<returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous read.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
<param name="state">An object that contains state information for this request.</param>
<returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous read.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.NotSupportedException">The operating system is Windows 2000 or earlier, and this method requires Windows XP.</exception>
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks section below.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is less than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is less than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks section below.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is less than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is less than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<returns>An <see cref="T:System.IAsyncResult" /> object that represents the asynchronous operation.</returns>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks section below.</exception>
- <exception cref="T:System.NotSupportedException">The operating system is not Windows NT or later.
+ <exception cref="T:System.NotSupportedException">The operating system is not Windows NT or later.
-or-
- The socket is not connected to a remote host.</exception>
+The socket is not connected to a remote host.</exception>
<exception cref="T:System.IO.FileNotFoundException">The file <paramref name="fileName" /> was not found.</exception>
</member>
<member name="M:System.Net.Sockets.Socket.BeginSendTo(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint,System.AsyncCallback,System.Object)">
<param name="state">An object that contains state information for this request.</param>
<returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous send.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
<summary>Begins an asynchronous request for a connection to a remote host.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentException">An argument is not valid. This exception occurs if multiple buffers are specified, the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> property is not null.</exception>
<exception cref="T:System.ArgumentNullException">The <paramref name="e" /> parameter cannot be null and the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.RemoteEndPoint" /> cannot be null.</exception>
<param name="protocolType">One of the <see cref="T:System.Net.Sockets.ProtocolType" /> values.</param>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentException">An argument is not valid. This exception occurs if multiple buffers are specified, the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> property is not null.</exception>
<exception cref="T:System.ArgumentNullException">The <paramref name="e" /> parameter cannot be null and the <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.RemoteEndPoint" /> cannot be null.</exception>
<summary>Begins an asynchronous request to disconnect from a remote endpoint.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentNullException">The <paramref name="e" /> parameter cannot be null.</exception>
<exception cref="T:System.InvalidOperationException">A socket operation was already in progress using the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object specified in the <paramref name="e" /> parameter.</exception>
<param name="targetProcessId">The ID of the target process where a duplicate of the socket reference is created.</param>
<returns>The socket reference to be passed to the target process.</returns>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="targetProcessID" /> is not a valid process id.
--or-
+ <paramref name="targetProcessID" /> is not a valid process id.
+-or-
Duplication of the socket reference failed.</exception>
</member>
<member name="P:System.Net.Sockets.Socket.EnableBroadcast">
<param name="ipPacketInformation">The <see cref="T:System.Net.IPAddress" /> and interface of the received packet.</param>
<returns>If successful, the number of bytes received. If unsuccessful, returns 0.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="asyncResult" /> is <see langword="null" />
--or-
+ <paramref name="asyncResult" /> is <see langword="null" />
+-or-
<paramref name="endPoint" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginReceiveMessageFrom(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint@,System.AsyncCallback,System.Object)" /> method.</exception>
<param name="optionLevel">One of the <see cref="T:System.Net.Sockets.SocketOptionLevel" /> values.</param>
<param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
<returns>An object that represents the value of the option. When the <paramref name="optionName" /> parameter is set to <see cref="F:System.Net.Sockets.SocketOptionName.Linger" /> the return value is an instance of the <see cref="T:System.Net.Sockets.LingerOption" /> class. When <paramref name="optionName" /> is set to <see cref="F:System.Net.Sockets.SocketOptionName.AddMembership" /> or <see cref="F:System.Net.Sockets.SocketOptionName.DropMembership" />, the return value is an instance of the <see cref="T:System.Net.Sockets.MulticastOption" /> class. When <paramref name="optionName" /> is any other value, the return value is an integer.</returns>
- <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
- -or-
- <paramref name="optionName" /> was set to the unsupported value <see cref="F:System.Net.Sockets.SocketOptionName.MaxConnections" />.</exception>
+ <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
+-or-
+<paramref name="optionName" /> was set to the unsupported value <see cref="F:System.Net.Sockets.SocketOptionName.MaxConnections" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<member name="M:System.Net.Sockets.Socket.GetSocketOption(System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,System.Byte[])">
<param name="optionLevel">One of the <see cref="T:System.Net.Sockets.SocketOptionLevel" /> values.</param>
<param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
<param name="optionValue">An array of type <see cref="T:System.Byte" /> that is to receive the option setting.</param>
- <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
+ <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
-or-
- In .NET Compact Framework applications, the Windows CE default buffer space is set to 32768 bytes. You can change the per socket buffer space by calling <see cref="Overload:System.Net.Sockets.Socket.SetSocketOption" />.</exception>
+In .NET Compact Framework applications, the Windows CE default buffer space is set to 32768 bytes. You can change the per socket buffer space by calling <see cref="Overload:System.Net.Sockets.Socket.SetSocketOption" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<member name="M:System.Net.Sockets.Socket.GetSocketOption(System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,System.Int32)">
<param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
<param name="optionLength">The length, in bytes, of the expected return value.</param>
<returns>An array of type <see cref="T:System.Byte" /> that contains the value of the socket option.</returns>
- <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
+ <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
-or-
- In .NET Compact Framework applications, the Windows CE default buffer space is set to 32768 bytes. You can change the per socket buffer space by calling <see cref="Overload:System.Net.Sockets.Socket.SetSocketOption" />.</exception>
+In .NET Compact Framework applications, the Windows CE default buffer space is set to 32768 bytes. You can change the per socket buffer space by calling <see cref="Overload:System.Net.Sockets.Socket.SetSocketOption" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<member name="P:System.Net.Sockets.Socket.Handle">
<summary>Determines the status of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
<param name="microSeconds">The time to wait for a response, in microseconds.</param>
<param name="mode">One of the <see cref="T:System.Net.Sockets.SelectMode" /> values.</param>
- <returns>The status of the <see cref="T:System.Net.Sockets.Socket" /> based on the polling mode value passed in the <paramref name="mode" /> parameter.
+ <returns>The status of the <see cref="T:System.Net.Sockets.Socket" /> based on the polling mode value passed in the <paramref name="mode" /> parameter.
Mode
-
+
Return Value
-
+
<see cref="F:System.Net.Sockets.SelectMode.SelectRead" /><see langword="true" /> if <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> has been called and a connection is pending;
-
+
-or-
-
+
<see langword="true" /> if data is available for reading;
-
+
-or-
-
+
<see langword="true" /> if the connection has been closed, reset, or terminated;
-
+
otherwise, returns <see langword="false" />.
-
+
<see cref="F:System.Net.Sockets.SelectMode.SelectWrite" /><see langword="true" />, if processing a <see cref="M:System.Net.Sockets.Socket.Connect(System.Net.EndPoint)" />, and the connection has succeeded;
-
+
-or-
-
+
<see langword="true" /> if data can be sent;
-
+
otherwise, returns <see langword="false" />.
-
+
<see cref="F:System.Net.Sockets.SelectMode.SelectError" /><see langword="true" /> if processing a <see cref="M:System.Net.Sockets.Socket.Connect(System.Net.EndPoint)" /> that does not block, and the connection has failed;
-
+
-or-
-
+
<see langword="true" /> if <see cref="F:System.Net.Sockets.SocketOptionName.OutOfBandInline" /> is not set and out-of-band data is available;
-
+
otherwise, returns <see langword="false" />.</returns>
<exception cref="T:System.NotSupportedException">The <paramref name="mode" /> parameter is not one of the <see cref="T:System.Net.Sockets.SelectMode" /> values.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks below.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
-The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
+-or-
An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
-The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property is not set.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property is not set.
+-or-
An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
<param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffers" /> is <see langword="null" />.
--or-
+ <paramref name="buffers" /> is <see langword="null" />.
+-or-
<paramref name="buffers" />.Count is zero.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffers" /> is <see langword="null" />.
--or-
+ <paramref name="buffers" /> is <see langword="null" />.
+-or-
<paramref name="buffers" />.Count is zero.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<summary>Begins an asynchronous request to receive data from a connected <see cref="T:System.Net.Sockets.Socket" /> object.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentException">An argument was invalid. The <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.Buffer" /> or <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> properties on the <paramref name="e" /> parameter must reference valid buffers. One or the other of these properties may be set, but not both at the same time.</exception>
<exception cref="T:System.InvalidOperationException">A socket operation was already in progress using the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object specified in the <paramref name="e" /> parameter.</exception>
<param name="remoteEP">An <see cref="T:System.Net.EndPoint" />, passed by reference, that represents the remote server.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of the <paramref name="buffer" /> minus the value of the offset parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
-The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
+-or-
An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<param name="remoteEP">An <see cref="T:System.Net.EndPoint" />, passed by reference, that represents the remote server.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="size" /> is less than 0.
--or-
+ <paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
-The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
+-or-
An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
<param name="remoteEP">An <see cref="T:System.Net.EndPoint" />, passed by reference, that represents the remote server.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<param name="remoteEP">An <see cref="T:System.Net.EndPoint" />, passed by reference, that represents the remote server.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<summary>Begins to asynchronously receive data from a specified network device.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentNullException">The <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.RemoteEndPoint" /> cannot be null.</exception>
<exception cref="T:System.InvalidOperationException">A socket operation was already in progress using the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object specified in the <paramref name="e" /> parameter.</exception>
<param name="ipPacketInformation">An <see cref="T:System.Net.Sockets.IPPacketInformation" /> holding address and interface information.</param>
<returns>The number of bytes received.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
-- or-
+ <paramref name="buffer" /> is <see langword="null" />.
+- or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of the <paramref name="buffer" /> minus the value of the offset parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
-The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
--or-
-The .NET Framework is running on an AMD 64-bit processor.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
+The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
+-or-
+The .NET Framework is running on an AMD 64-bit processor.
+-or-
An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.NotSupportedException">The operating system is Windows 2000 or earlier, and this method requires Windows XP.</exception>
<summary>Begins to asynchronously receive the specified number of bytes of data into the specified location in the data buffer, using the specified <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.SocketFlags" />, and stores the endpoint and packet information.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentNullException">The <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.RemoteEndPoint" /> cannot be null.</exception>
<exception cref="T:System.NotSupportedException">Windows XP or later is required for this method.</exception>
<param name="checkWrite">An <see cref="T:System.Collections.IList" /> of <see cref="T:System.Net.Sockets.Socket" /> instances to check for writability.</param>
<param name="checkError">An <see cref="T:System.Collections.IList" /> of <see cref="T:System.Net.Sockets.Socket" /> instances to check for errors.</param>
<param name="microSeconds">The time-out value, in microseconds. A -1 value indicates an infinite time-out.</param>
- <exception cref="T:System.ArgumentNullException">The <paramref name="checkRead" /> parameter is <see langword="null" /> or empty.
- -and-
- The <paramref name="checkWrite" /> parameter is <see langword="null" /> or empty
- -and-
- The <paramref name="checkError" /> parameter is <see langword="null" /> or empty.</exception>
+ <exception cref="T:System.ArgumentNullException">The <paramref name="checkRead" /> parameter is <see langword="null" /> or empty.
+-and-
+The <paramref name="checkWrite" /> parameter is <see langword="null" /> or empty
+-and-
+The <paramref name="checkError" /> parameter is <see langword="null" /> or empty.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
</member>
<member name="M:System.Net.Sockets.Socket.Send(System.Byte[])">
<exception cref="T:System.ArgumentNullException">
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<exception cref="T:System.ArgumentNullException">
<paramref name="buffer" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="size" /> is less than 0 or exceeds the size of the buffer.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
An operating system error occurs while accessing the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
</member>
<summary>Sends data asynchronously to a connected <see cref="T:System.Net.Sockets.Socket" /> object.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentException">The <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.Buffer" /> or <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> properties on the <paramref name="e" /> parameter must reference valid buffers. One or the other of these properties may be set, but not both at the same time.</exception>
<exception cref="T:System.InvalidOperationException">A socket operation was already in progress using the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object specified in the <paramref name="e" /> parameter.</exception>
<param name="preBuffer">A <see cref="T:System.Byte" /> array that contains data to be sent before the file is sent. This parameter can be <see langword="null" />.</param>
<param name="postBuffer">A <see cref="T:System.Byte" /> array that contains data to be sent after the file is sent. This parameter can be <see langword="null" />.</param>
<param name="flags">One or more of <see cref="T:System.Net.Sockets.TransmitFileOptions" /> values.</param>
- <exception cref="T:System.NotSupportedException">The operating system is not Windows NT or later.
+ <exception cref="T:System.NotSupportedException">The operating system is not Windows NT or later.
-or-
- The socket is not connected to a remote host.</exception>
+The socket is not connected to a remote host.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> object is not in blocking mode and cannot accept this synchronous call.</exception>
<exception cref="T:System.IO.FileNotFoundException">The file <paramref name="fileName" /> was not found.</exception>
<summary>Sends a collection of files or in memory data buffers asynchronously to a connected <see cref="T:System.Net.Sockets.Socket" /> object.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.IO.FileNotFoundException">The file specified in the <see cref="P:System.Net.Sockets.SendPacketsElement.FilePath" /> property was not found.</exception>
<exception cref="T:System.InvalidOperationException">A socket operation was already in progress using the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object specified in the <paramref name="e" /> parameter.</exception>
<param name="remoteEP">The <see cref="T:System.Net.EndPoint" /> that represents the destination location for the data.</param>
<returns>The number of bytes sent.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">
- <paramref name="offset" /> is less than 0.
--or-
-<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
--or-
-<paramref name="size" /> is less than 0.
--or-
+ <paramref name="offset" /> is less than 0.
+-or-
+<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
+-or-
+<paramref name="size" /> is less than 0.
+-or-
<paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
<exception cref="T:System.Net.Sockets.SocketException">
- <paramref name="socketFlags" /> is not a valid combination of values.
--or-
+ <paramref name="socketFlags" /> is not a valid combination of values.
+-or-
An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
<param name="remoteEP">The <see cref="T:System.Net.EndPoint" /> that represents the destination location for the data.</param>
<returns>The number of bytes sent.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentOutOfRangeException">The specified <paramref name="size" /> exceeds the size of <paramref name="buffer" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<param name="remoteEP">The <see cref="T:System.Net.EndPoint" /> that represents the destination for the data.</param>
<returns>The number of bytes sent.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<param name="remoteEP">The <see cref="T:System.Net.EndPoint" /> that represents the destination location for the data.</param>
<returns>The number of bytes sent.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="buffer" /> is <see langword="null" />.
--or-
+ <paramref name="buffer" /> is <see langword="null" />.
+-or-
<paramref name="remoteEP" /> is <see langword="null" />.</exception>
<exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
<exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<summary>Sends data asynchronously to a specific remote host.</summary>
<param name="e">The <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object to use for this asynchronous socket operation.</param>
<returns>
- <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
+ <see langword="true" /> if the I/O operation is pending. The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will be raised upon completion of the operation.
<see langword="false" /> if the I/O operation completed synchronously. In this case, The <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> event on the <paramref name="e" /> parameter will not be raised and the <paramref name="e" /> object passed as a parameter may be examined immediately after the method call returns to retrieve the result of the operation.</returns>
<exception cref="T:System.ArgumentNullException">The <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.RemoteEndPoint" /> cannot be null.</exception>
<exception cref="T:System.InvalidOperationException">A socket operation was already in progress using the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> object specified in the <paramref name="e" /> parameter.</exception>
<member name="M:System.Net.Sockets.TcpClient.#ctor(System.Net.Sockets.AddressFamily)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpClient" /> class with the specified family.</summary>
<param name="family">The <see cref="P:System.Net.IPAddress.AddressFamily" /> of the IP protocol.</param>
- <exception cref="T:System.ArgumentException">The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetwork
- -or-
- The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetworkV6</exception>
+ <exception cref="T:System.ArgumentException">The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetwork
+-or-
+The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetworkV6</exception>
</member>
<member name="M:System.Net.Sockets.TcpClient.#ctor(System.String,System.Int32)">
<summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpClient" /> class and connects to the specified port on the specified host.</summary>
<member name="P:System.Net.Sockets.TcpClient.ReceiveBufferSize">
<summary>Gets or sets the size of the receive buffer.</summary>
<returns>The size of the receive buffer, in bytes. The default value is 8192 bytes.</returns>
- <exception cref="T:System.Net.Sockets.SocketException">An error occurred when setting the buffer size.
- -or-
- In .NET Compact Framework applications, you cannot set this property. For a workaround, see the Platform Note in Remarks.</exception>
+ <exception cref="T:System.Net.Sockets.SocketException">An error occurred when setting the buffer size.
+-or-
+In .NET Compact Framework applications, you cannot set this property. For a workaround, see the Platform Note in Remarks.</exception>
</member>
<member name="P:System.Net.Sockets.TcpClient.ReceiveTimeout">
<summary>Gets or sets the amount of time a <see cref="T:System.Net.Sockets.TcpClient" /> will wait to receive data once a read operation is initiated.</summary>
<member name="M:System.Net.Sockets.TcpListener.EndAcceptSocket(System.IAsyncResult)">
<summary>Asynchronously accepts an incoming connection attempt and creates a new <see cref="T:System.Net.Sockets.Socket" /> to handle remote host communication.</summary>
<param name="asyncResult">An <see cref="T:System.IAsyncResult" /> returned by a call to the <see cref="M:System.Net.Sockets.TcpListener.BeginAcceptSocket(System.AsyncCallback,System.Object)" /> method.</param>
- <returns>A <see cref="T:System.Net.Sockets.Socket" />.
- The <see cref="T:System.Net.Sockets.Socket" /> used to send and receive data.</returns>
+ <returns>A <see cref="T:System.Net.Sockets.Socket" />.
+The <see cref="T:System.Net.Sockets.Socket" /> used to send and receive data.</returns>
<exception cref="T:System.ObjectDisposedException">The underlying <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
<exception cref="T:System.ArgumentNullException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">The <paramref name="asyncResult" /> parameter was not created by a call to the <see cref="M:System.Net.Sockets.TcpListener.BeginAcceptSocket(System.AsyncCallback,System.Object)" /> method.</exception>
<member name="M:System.Net.Sockets.TcpListener.EndAcceptTcpClient(System.IAsyncResult)">
<summary>Asynchronously accepts an incoming connection attempt and creates a new <see cref="T:System.Net.Sockets.TcpClient" /> to handle remote host communication.</summary>
<param name="asyncResult">An <see cref="T:System.IAsyncResult" /> returned by a call to the <see cref="M:System.Net.Sockets.TcpListener.BeginAcceptTcpClient(System.AsyncCallback,System.Object)" /> method.</param>
- <returns>A <see cref="T:System.Net.Sockets.TcpClient" />.
- The <see cref="T:System.Net.Sockets.TcpClient" /> used to send and receive data.</returns>
+ <returns>A <see cref="T:System.Net.Sockets.TcpClient" />.
+The <see cref="T:System.Net.Sockets.TcpClient" /> used to send and receive data.</returns>
</member>
<member name="P:System.Net.Sockets.TcpListener.ExclusiveAddressUse">
<summary>Gets or sets a <see cref="T:System.Boolean" /> value that specifies whether the <see cref="T:System.Net.Sockets.TcpListener" /> allows only one underlying socket to listen to a specific port.</summary>