mdw.nbio
Class NonblockingSocketImpl
java.lang.Object
|
+--mdw.nbio.NonblockingSocketImpl
- class NonblockingSocketImpl
- extends java.lang.Object
Methods inherited from class java.lang.Object |
, clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NonblockingSocketImpl
NonblockingSocketImpl()
NonblockingSocketImpl
NonblockingSocketImpl(java.net.InetAddress address)
create
protected void create(boolean stream)
throws java.io.IOException
connect
protected void connect(java.lang.String host,
int port)
throws java.io.IOException
connect
protected void connect(java.net.InetAddress address,
int port)
throws java.io.IOException
connectDone
protected boolean connectDone()
throws java.net.SocketException
bind
protected void bind(java.net.InetAddress host,
int port)
throws java.io.IOException
listen
protected void listen(int backlog)
throws java.io.IOException
accept
protected void accept(NonblockingSocketImpl s)
throws java.io.IOException
nbAccept
protected int nbAccept(NonblockingSocketImpl s)
throws java.io.IOException
getInputStream
protected java.io.InputStream getInputStream()
throws java.io.IOException
getOutputStream
protected java.io.OutputStream getOutputStream()
throws java.io.IOException
available
protected int available()
throws java.io.IOException
close
protected void close()
throws java.io.IOException
finalize
protected void finalize()
throws java.io.IOException
- Overrides:
finalize
in class java.lang.Object
getInetAddress
protected java.net.InetAddress getInetAddress()
getPort
protected int getPort()
getLocalPort
protected int getLocalPort()
setOption
public void setOption(int optID,
java.lang.Object value)
throws java.net.SocketException
getOption
public java.lang.Object getOption(int optID)
throws java.net.SocketException
send
protected int send(java.net.DatagramPacket p)
throws java.io.IOException
receive
protected int receive(java.net.DatagramPacket p)
throws java.io.IOException
disconnect
protected void disconnect()
throws java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getFileDescriptor
protected NBIOFileDescriptor getFileDescriptor()
joinGroup
protected void joinGroup(java.net.InetAddress address)
throws java.io.IOException
leaveGroup
protected void leaveGroup(java.net.InetAddress address)
throws java.io.IOException
setTimeToLive
protected void setTimeToLive(int ttl)
throws java.io.IOException
getTimeToLive
protected int getTimeToLive()
throws java.io.IOException
setInterface
protected void setInterface(java.net.InetAddress addr)
throws java.io.IOException
seeLocalMessages
protected void seeLocalMessages(boolean state)
throws java.io.IOException