Package java.net
Class SocketImpl
java.lang.Object
java.net.SocketImpl
- All Implemented Interfaces:
SocketOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InetAddress
protected FileDescriptor
protected int
protected int
Fields inherited from interface java.net.SocketOptions
IP_MULTICAST_IF, SO_BINDADDR, SO_KEEPALIVE, SO_LINGER, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
accept
(SocketImpl var0) protected abstract int
protected abstract void
bind
(InetAddress var0, int var1) protected abstract void
close()
protected abstract void
protected abstract void
connect
(InetAddress var0, int var1) protected abstract void
create
(boolean var0) protected FileDescriptor
protected InetAddress
protected abstract InputStream
protected int
abstract Object
getOption
(int var0) protected abstract OutputStream
protected int
getPort()
protected abstract void
listen
(int var0) abstract void
protected void
protected void
toString()
-
Field Details
-
address
-
port
protected int port -
fd
-
localport
protected int localport
-
-
Constructor Details
-
SocketImpl
public SocketImpl()
-
-
Method Details
-
accept
- Throws:
IOException
-
available
- Throws:
IOException
-
bind
- Throws:
IOException
-
close
- Throws:
IOException
-
connect
- Throws:
IOException
-
connect
- Throws:
IOException
-
create
- Throws:
IOException
-
getFileDescriptor
-
getInetAddress
-
getInputStream
- Throws:
IOException
-
getLocalPort
protected int getLocalPort() -
getOption
- Specified by:
getOption
in interfaceSocketOptions
- Throws:
SocketException
-
getOutputStream
- Throws:
IOException
-
getPort
protected int getPort() -
listen
- Throws:
IOException
-
setOption
- Specified by:
setOption
in interfaceSocketOptions
- Throws:
SocketException
-
toString
-
shutdownInput
- Throws:
IOException
-
shutdownOutput
- Throws:
IOException
-