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, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, 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
connect
(SocketAddress var0, int var1) protected abstract void
create
(boolean var0) protected FileDescriptor
protected InetAddress
protected abstract InputStream
protected int
protected abstract OutputStream
protected int
getPort()
protected abstract void
listen
(int var0) protected abstract void
sendUrgentData
(int var0) protected void
protected void
protected boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.net.SocketOptions
getOption, setOption
-
Field Details
-
address
-
fd
-
localport
protected int localport -
port
protected int port
-
-
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
-
connect
- Throws:
IOException
-
create
- Throws:
IOException
-
getFileDescriptor
-
getInetAddress
-
getInputStream
- Throws:
IOException
-
getLocalPort
protected int getLocalPort() -
getOutputStream
- Throws:
IOException
-
getPort
protected int getPort() -
listen
- Throws:
IOException
-
sendUrgentData
- Throws:
IOException
-
shutdownInput
- Throws:
IOException
-
shutdownOutput
- Throws:
IOException
-
supportsUrgentData
protected boolean supportsUrgentData()
-