Class SocketImpl
java.lang.Object
java.net.SocketImpl
- All Implemented Interfaces:
SocketOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InetAddressprotected FileDescriptorprotected intprotected intFields inherited from interface 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 voidaccept(SocketImpl var0) protected abstract intprotected abstract voidbind(InetAddress var0, int var1) protected abstract voidclose()protected abstract voidprotected abstract voidconnect(InetAddress var0, int var1) protected abstract voidcreate(boolean var0) protected FileDescriptorprotected InetAddressprotected abstract InputStreamprotected intabstract ObjectgetOption(int var0) protected abstract OutputStreamprotected intgetPort()protected abstract voidlisten(int var0) abstract voidprotected voidprotected voidtoString()
-
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:
getOptionin interfaceSocketOptions- Throws:
SocketException
-
getOutputStream
- Throws:
IOException
-
getPort
protected int getPort() -
listen
- Throws:
IOException
-
setOption
- Specified by:
setOptionin interfaceSocketOptions- Throws:
SocketException
-
toString
-
shutdownInput
- Throws:
IOException
-
shutdownOutput
- Throws:
IOException
-