org.activeio.adapter
Class SynchChannelServerToServerSocketAdapter
java.lang.Object
java.net.ServerSocket
org.activeio.adapter.SynchChannelServerToServerSocketAdapter
- public class SynchChannelServerToServerSocketAdapter
- extends java.net.ServerSocket
Field Summary |
(package private) boolean |
closed
|
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 |
closed
boolean closed
SynchChannelServerToServerSocketAdapter
public SynchChannelServerToServerSocketAdapter(SynchChannelServer channelServer)
throws java.io.IOException
- Throws:
java.io.IOException
setSoTimeout
public void setSoTimeout(int timeout)
throws java.net.SocketException
- Throws:
java.net.SocketException
getSoTimeout
public int getSoTimeout()
throws java.io.IOException
- Throws:
java.io.IOException
accept
public java.net.Socket accept()
throws java.io.IOException
- Throws:
java.io.IOException
bind
public void bind(java.net.SocketAddress endpoint,
int backlog)
throws java.io.IOException
- Throws:
java.io.IOException
bind
public void bind(java.net.SocketAddress endpoint)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getChannel
public java.nio.channels.ServerSocketChannel getChannel()
getInetAddress
public java.net.InetAddress getInetAddress()
getLocalPort
public int getLocalPort()
getLocalSocketAddress
public java.net.SocketAddress getLocalSocketAddress()
getReceiveBufferSize
public int getReceiveBufferSize()
throws java.net.SocketException
- Throws:
java.net.SocketException
getReuseAddress
public boolean getReuseAddress()
throws java.net.SocketException
- Throws:
java.net.SocketException
isBound
public boolean isBound()
isClosed
public boolean isClosed()
setPerformancePreferences
public void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws java.net.SocketException
- Throws:
java.net.SocketException
setReuseAddress
public void setReuseAddress(boolean on)
throws java.net.SocketException
- Throws:
java.net.SocketException
Copyright © -2005 The ActiveIO Project. All Rights Reserved.