DthingApi
Classes | Public Member Functions | Protected Member Functions | List of all members
java.net.PlainSocketImpl Class Reference
Inheritance diagram for java.net.PlainSocketImpl:
java.net.SocketImpl java.net.SocketOptions

Public Member Functions

 PlainSocketImpl (int localport, InetAddress addr, int port)
 
Object getOption (int option) throws SocketException
 
void setOption (int option, int value) throws SocketException
 
- Public Member Functions inherited from java.net.SocketImpl
String toString ()
 

Protected Member Functions

synchronized int available () throws IOException
 
void bind (InetAddress addr, int port) throws IOException
 
synchronized void close () throws IOException
 
void connect (String host, int port) throws IOException
 
void connect (InetAddress addr, int port) throws IOException
 
void connect (SocketAddress remoteAddr, int timeout) throws IOException
 
void create () throws IOException
 
void finalize () throws Throwable
 
synchronized InputStream getInputStream () throws IOException
 
synchronized OutputStream getOutputStream () throws IOException
 
void shutdownInput () throws IOException
 
void shutdownOutput () throws IOException
 
- Protected Member Functions inherited from java.net.SocketImpl
abstract int available () throws IOException
 
abstract void bind (InetAddress address, int port) throws IOException
 
abstract void close () throws IOException
 
abstract void connect (String host, int port) throws IOException
 
abstract void connect (InetAddress address, int port) throws IOException
 
abstract void create () throws IOException
 
InetAddress getInetAddress ()
 
abstract InputStream getInputStream () throws IOException
 
int getLocalPort ()
 
abstract OutputStream getOutputStream () throws IOException
 
int getPort ()
 
void shutdownInput () throws IOException
 
void shutdownOutput () throws IOException
 
abstract void connect (SocketAddress remoteAddr, int timeout) throws IOException
 
void setPerformancePreferences (int connectionTime, int latency, int bandwidth)
 

Additional Inherited Members

- Static Public Attributes inherited from java.net.SocketOptions
static final int SO_LINGER = 128
 
static final int SO_TIMEOUT = 4102
 
static final int TCP_NODELAY = 1
 
static final int IP_MULTICAST_IF = 16
 
static final int SO_BINDADDR = 15
 
static final int SO_REUSEADDR = 4
 
static final int SO_SNDBUF = 4097
 
static final int SO_RCVBUF = 4098
 
static final int SO_KEEPALIVE = 8
 
static final int IP_TOS = 3
 
static final int IP_MULTICAST_LOOP = 18
 
static final int SO_BROADCAST = 32
 
static final int SO_OOBINLINE = 4099
 
static final int IP_MULTICAST_IF2 = 31
 
- Protected Attributes inherited from java.net.SocketImpl
InetAddress address
 
int port
 
int localport
 

Detailed Description

used in java.nio.

Member Function Documentation

◆ getOption()

Object java.net.PlainSocketImpl.getOption ( int  optID) throws SocketException
inline

Gets the value for the specified socket option.

Returns
the option value.
Parameters
optIDthe option identifier.
Exceptions
SocketExceptionif an error occurs reading the option value.

Implements java.net.SocketOptions.

◆ setOption()

void java.net.PlainSocketImpl.setOption ( int  optID,
int  val 
) throws SocketException
inline

Sets the value of the specified socket option.

Parameters
optIDthe option identifier.
valthe value to be set for the option.
Exceptions
SocketExceptionif an error occurs setting the option value.

Implements java.net.SocketOptions.

◆ shutdownInput()

void java.net.PlainSocketImpl.shutdownInput ( ) throws IOException
inlineprotected

Shutdown the input portion of the socket.

◆ shutdownOutput()

void java.net.PlainSocketImpl.shutdownOutput ( ) throws IOException
inlineprotected

Shutdown the output portion of the socket.


The documentation for this class was generated from the following file: