다음을 통해 공유


Socket.SendBufferSize Property

Definition

Get value of the SocketOptions#SO_SNDBUF SO_SNDBUF option for this Socket, that is the buffer size used by the platform for output on this Socket. -or- Sets the SocketOptions#SO_SNDBUF SO_SNDBUF option to the specified value for this Socket.

public virtual int SendBufferSize { [Android.Runtime.Register("getSendBufferSize", "()I", "GetGetSendBufferSizeHandler")] get; [Android.Runtime.Register("setSendBufferSize", "(I)V", "GetSetSendBufferSize_IHandler")] set; }
[<get: Android.Runtime.Register("getSendBufferSize", "()I", "GetGetSendBufferSizeHandler")>]
[<set: Android.Runtime.Register("setSendBufferSize", "(I)V", "GetSetSendBufferSize_IHandler")>]
member this.SendBufferSize : int with get, set

Property Value

the value of the SocketOptions#SO_SNDBUF SO_SNDBUF option for this Socket.

Attributes

Exceptions

Remarks

Property getter documentation:

Get value of the SocketOptions#SO_SNDBUF SO_SNDBUF option for this Socket, that is the buffer size used by the platform for output on this Socket.

Added in 1.2.

Java documentation for java.net.Socket.getSendBufferSize().

Property setter documentation:

Sets the SocketOptions#SO_SNDBUF SO_SNDBUF option to the specified value for this Socket. The SocketOptions#SO_SNDBUF SO_SNDBUF option is used by the platform's networking code as a hint for the size to set the underlying network I/O buffers.

Because SocketOptions#SO_SNDBUF SO_SNDBUF is a hint, applications that want to verify what size the buffers were set to should call #getSendBufferSize().

Added in 1.2.

Java documentation for java.net.Socket.setSendBufferSize(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to