org.activeio.adapter
Class SyncChannelServerToServerSocket

java.lang.Object
  extended by java.net.ServerSocket
      extended by org.activeio.adapter.SyncChannelServerToServerSocket

public class SyncChannelServerToServerSocket
extends ServerSocket


Constructor Summary
SyncChannelServerToServerSocket(SyncChannelServer channelServer)
           
 
Method Summary
 Socket accept()
           
 void bind(SocketAddress endpoint)
           
 void bind(SocketAddress endpoint, int backlog)
           
 void close()
           
 ServerSocketChannel getChannel()
           
 InetAddress getInetAddress()
           
 int getLocalPort()
           
 SocketAddress getLocalSocketAddress()
           
 int getReceiveBufferSize()
           
 boolean getReuseAddress()
           
 int getSoTimeout()
           
 boolean isBound()
           
 boolean isClosed()
           
 void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
           
 void setReceiveBufferSize(int size)
           
 void setReuseAddress(boolean on)
           
 void setSoTimeout(int timeout)
           
 
Methods inherited from class java.net.ServerSocket
implAccept, setSocketFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyncChannelServerToServerSocket

public SyncChannelServerToServerSocket(SyncChannelServer channelServer)
                                throws IOException
Throws:
IOException
Method Detail

setSoTimeout

public void setSoTimeout(int timeout)
                  throws SocketException
Overrides:
setSoTimeout in class ServerSocket
Throws:
SocketException

getSoTimeout

public int getSoTimeout()
                 throws IOException
Overrides:
getSoTimeout in class ServerSocket
Throws:
IOException

accept

public Socket accept()
              throws IOException
Overrides:
accept in class ServerSocket
Throws:
IOException

bind

public void bind(SocketAddress endpoint,
                 int backlog)
          throws IOException
Overrides:
bind in class ServerSocket
Throws:
IOException

bind

public void bind(SocketAddress endpoint)
          throws IOException
Overrides:
bind in class ServerSocket
Throws:
IOException

close

public void close()
           throws IOException
Overrides:
close in class ServerSocket
Throws:
IOException

getChannel

public ServerSocketChannel getChannel()
Overrides:
getChannel in class ServerSocket

getInetAddress

public InetAddress getInetAddress()
Overrides:
getInetAddress in class ServerSocket

getLocalPort

public int getLocalPort()
Overrides:
getLocalPort in class ServerSocket

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()
Overrides:
getLocalSocketAddress in class ServerSocket

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws SocketException
Overrides:
getReceiveBufferSize in class ServerSocket
Throws:
SocketException

getReuseAddress

public boolean getReuseAddress()
                        throws SocketException
Overrides:
getReuseAddress in class ServerSocket
Throws:
SocketException

isBound

public boolean isBound()
Overrides:
isBound in class ServerSocket

isClosed

public boolean isClosed()
Overrides:
isClosed in class ServerSocket

setPerformancePreferences

public void setPerformancePreferences(int connectionTime,
                                      int latency,
                                      int bandwidth)
Overrides:
setPerformancePreferences in class ServerSocket

setReceiveBufferSize

public void setReceiveBufferSize(int size)
                          throws SocketException
Overrides:
setReceiveBufferSize in class ServerSocket
Throws:
SocketException

setReuseAddress

public void setReuseAddress(boolean on)
                     throws SocketException
Overrides:
setReuseAddress in class ServerSocket
Throws:
SocketException


Copyright © -2009 The ActiveIO Project. All Rights Reserved.