More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.nbio
Class NonblockingSocketImpl

java.lang.Object
  |
  +--seda.nbio.NonblockingSocketImpl

class NonblockingSocketImpl
extends java.lang.Object


Constructor Summary
(package private) NonblockingSocketImpl()
           
(package private) NonblockingSocketImpl(java.net.InetAddress address)
           
 
Method Summary
protected  void accept(NonblockingSocketImpl s)
           
protected  int available()
           
protected  void bind(java.net.InetAddress host, int port)
           
protected  void close()
           
protected  void connect(java.net.InetAddress address, int port)
           
protected  void connect(java.lang.String host, int port)
           
protected  boolean connectDone()
           
protected  void create(boolean stream)
           
protected  void disconnect()
           
protected  void finalize()
           
protected  NBIOFileDescriptor getFileDescriptor()
           
protected  java.net.InetAddress getInetAddress()
           
protected  java.io.InputStream getInputStream()
           
protected  int getLocalPort()
           
 java.lang.Object getOption(int optID)
           
protected  java.io.OutputStream getOutputStream()
           
protected  int getPort()
           
protected  int getTimeToLive()
           
protected  void joinGroup(java.net.InetAddress address)
           
protected  void leaveGroup(java.net.InetAddress address)
           
protected  void listen(int backlog)
           
protected  int nbAccept(NonblockingSocketImpl s)
           
protected  int receive(java.net.DatagramPacket p)
           
protected  void seeLocalMessages(boolean state)
           
protected  int send(java.net.DatagramPacket p)
           
protected  void setInterface(java.net.InetAddress addr)
           
 void setOption(int optID, java.lang.Object value)
           
protected  void setTimeToLive(int ttl)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonblockingSocketImpl

NonblockingSocketImpl()

NonblockingSocketImpl

NonblockingSocketImpl(java.net.InetAddress address)
Method Detail

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

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/