|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ServerSocket
org.jboss.remoting.transport.multiplex.VirtualServerSocket
VirtualServerSocket
is one of the two implementations of a server socket in the
Multiplex project. Each VirtualServerSocket
belongs to an existing virtual
socket group, and each VirtualScoket
it creates is added to that virtual socket
group. For more details, see the Multiplex documentation on
the labs.jboss.org web site.
Most of the methods in VirtualServerSocket
override those in its parent class,
java.net.ServerSocket
. For method descriptions, see the ServerSocket
javadoc.
Copyright (c) 2005
Nested Class Summary | |
protected class |
VirtualServerSocket.PendingClose
|
Constructor Summary | |
VirtualServerSocket()
|
|
VirtualServerSocket(java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress,
int timeout,
java.util.Map configuration)
See superclass javadoc. |
|
VirtualServerSocket(int port)
See superclass javadoc. |
|
VirtualServerSocket(int port,
int backlog)
See superclass javadoc. |
|
VirtualServerSocket(int port,
int backlog,
java.net.InetAddress bindAddr)
See superclass javadoc. |
|
VirtualServerSocket(VirtualSocket socket,
java.util.Map configuration)
See superclass javadoc. |
Method Summary | |
java.net.Socket |
accept()
See superclass javadoc. |
void |
bind(java.net.SocketAddress socketAddress)
See superclass javadoc. |
void |
bind(java.net.SocketAddress socketAddress,
int backlog)
See superclass javadoc. |
void |
close()
See superclass javadoc. |
void |
connect(java.net.SocketAddress remoteAddress)
See superclass javadoc. |
void |
connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
Connects this socket to the server. |
void |
connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
int timeout)
See superclass javadoc. |
protected void |
doClose()
|
java.nio.channels.ServerSocketChannel |
getChannel()
See superclass javadoc. |
java.net.InetAddress |
getInetAddress()
See superclass javadoc. |
int |
getLocalPort()
See superclass javadoc. |
java.net.SocketAddress |
getLocalSocketAddress()
See superclass javadoc. |
MultiplexingManager |
getMultiplexingManager()
|
int |
getReceiveBufferSize()
See superclass javadoc. |
java.net.InetAddress |
getRemoteAddress()
See superclass javadoc. |
int |
getRemotePort()
See superclass javadoc. |
boolean |
getReuseAddress()
See superclass javadoc. |
int |
getSoTimeout()
See superclass javadoc. |
boolean |
isBound()
See superclass javadoc. |
boolean |
isClosed()
See superclass javadoc. |
boolean |
isConnected()
See superclass javadoc. |
void |
setConfiguration(java.util.Map configuration)
See superclass javadoc. |
void |
setReceiveBufferSize(int size)
See superclass javadoc. |
void |
setReuseAddress(boolean on)
See superclass javadoc. |
void |
setSoTimeout(int timeout)
See superclass javadoc. |
java.lang.String |
toString()
See superclass javadoc. |
Methods inherited from class java.net.ServerSocket |
implAccept, setSocketFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VirtualServerSocket() throws java.io.IOException
java.io.IOException
public VirtualServerSocket(int port) throws java.io.IOException
port
-
java.io.IOException
public VirtualServerSocket(int port, int backlog) throws java.io.IOException
port
- backlog
-
java.io.IOException
public VirtualServerSocket(int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException
port
- backlog
- bindAddr
-
java.io.IOException
public VirtualServerSocket(VirtualSocket socket, java.util.Map configuration) throws java.io.IOException
configuration
- public VirtualServerSocket(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress, int timeout, java.util.Map configuration) throws java.io.IOException
timeout
- configuration
-
java.io.IOException
Method Detail |
public java.net.Socket accept() throws java.io.IOException
java.io.IOException
public void bind(java.net.SocketAddress socketAddress) throws java.io.IOException
java.io.IOException
public void bind(java.net.SocketAddress socketAddress, int backlog) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public java.net.InetAddress getInetAddress()
public int getLocalPort()
public java.nio.channels.ServerSocketChannel getChannel()
public java.net.SocketAddress getLocalSocketAddress()
public int getReceiveBufferSize() throws java.net.SocketException
java.net.SocketException
public boolean getReuseAddress() throws java.net.SocketException
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
java.net.SocketException
public boolean isBound()
public boolean isClosed()
public void setReceiveBufferSize(int size) throws java.net.SocketException
java.net.SocketException
public void setReuseAddress(boolean on) throws java.net.SocketException
java.net.SocketException
public void setSoTimeout(int timeout) throws java.net.SocketException
java.net.SocketException
public java.lang.String toString()
public void connect(java.net.SocketAddress remoteAddress) throws java.io.IOException
java.io.IOException
public void connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.io.IOException
java.io.IOException
public void connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, int timeout) throws java.io.IOException
java.io.IOException
public MultiplexingManager getMultiplexingManager()
public boolean isConnected()
public java.net.InetAddress getRemoteAddress()
public int getRemotePort()
public void setConfiguration(java.util.Map configuration)
protected void doClose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |