The properties of Java.Net.Socket are listed below. For a list of all members, see the Socket Members list.
See Also: Inherited members from Java.Lang.Object
[read-only] | Channel | Java.Nio.Channels.SocketChannel. Returns this socket's SocketChannel, if one exists. |
[read-only] | InetAddress | InetAddress. Returns the IP address of the target host this socket is connected to, or null if this socket is not yet connected. |
[read-only] | InputStream | System.IO.Stream. Returns an input stream to read data from this socket. |
[read-only] | IsBound | bool. Returns whether this socket is bound to a local address and port. |
[read-only] | IsClosed | bool. Returns whether this socket is closed. |
[read-only] | IsConnected | bool. Returns whether this socket is connected to a remote host. |
[read-only] | IsInputShutdown | bool. Returns whether the incoming channel of the socket has already been closed. |
[read-only] | IsOutputShutdown | bool. Returns whether the outgoing channel of the socket has already been closed. |
KeepAlive | bool. Returns this socket's SocketOptions.SoKeepalive setting. | |
[read-only] | LocalAddress | InetAddress. Returns the local IP address this socket is bound to, or an address for which InetAddress.IsAnyLocalAddress returns true if the socket is closed or unbound. |
[read-only] | LocalPort | int. Returns the local port this socket is bound to, or -1 if the socket is unbound. |
[read-only] | LocalSocketAddress | SocketAddress. Returns the local address and port of this socket as a SocketAddress or null if the socket has never been bound. |
OOBInline | bool. Returns this socket's SocketOptions.SoOobinline setting. | |
[read-only] | OutputStream | System.IO.Stream. Returns an output stream to write data into this socket. |
[read-only] | Port | int. Returns the port number of the target host this socket is connected to, or 0 if this socket is not yet connected. |
ReceiveBufferSize | int. Returns this socket's SocketOptions.SoRcvbuf. | |
[read-only] | RemoteSocketAddress | SocketAddress. Returns the remote address and port of this socket as a SocketAddress or null if the socket is not connected. |
ReuseAddress | bool. Returns this socket's SocketOptions.SoReuseaddr setting. | |
SendBufferSize | int. Returns this socket's SocketOptions.SoSndbuf. | |
[read-only] | SoLinger | int. Returns this socket's SocketOptions.SoLinger timeout in seconds, or -1 for no linger (i.e. |
SoTimeout | int. Returns this socket's SocketOptions.SoTimeout. | |
TcpNoDelay | bool. Returns this socket's SocketOptions#TCP_NODELAY setting. | |
TrafficClass | int. Returns this socket's setting. |
[read-only] override | ThresholdClass | IntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
[read-only] override | ThresholdType | Type. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |