|
||||||||||
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
public class 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, setPerformancePreferences, 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
-
java.io.IOException
public VirtualServerSocket(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress, int timeout, java.util.Map configuration) throws java.io.IOException
timeout
- configuration
- port
-
java.io.IOException
Method Detail |
---|
public java.net.Socket accept() throws java.io.IOException
accept
in class java.net.ServerSocket
java.io.IOException
public void bind(java.net.SocketAddress socketAddress) throws java.io.IOException
bind
in class java.net.ServerSocket
java.io.IOException
public void bind(java.net.SocketAddress socketAddress, int backlog) throws java.io.IOException
bind
in class java.net.ServerSocket
java.io.IOException
public void close() throws java.io.IOException
close
in class java.net.ServerSocket
java.io.IOException
public java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.ServerSocket
public int getLocalPort()
getLocalPort
in class java.net.ServerSocket
public java.nio.channels.ServerSocketChannel getChannel()
getChannel
in class java.net.ServerSocket
public java.net.SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class java.net.ServerSocket
public int getReceiveBufferSize() throws java.net.SocketException
getReceiveBufferSize
in class java.net.ServerSocket
java.net.SocketException
public boolean getReuseAddress() throws java.net.SocketException
getReuseAddress
in class java.net.ServerSocket
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
getSoTimeout
in class java.net.ServerSocket
java.net.SocketException
public boolean isBound()
isBound
in class java.net.ServerSocket
public boolean isClosed()
isClosed
in class java.net.ServerSocket
public void setReceiveBufferSize(int size) throws java.net.SocketException
setReceiveBufferSize
in class java.net.ServerSocket
java.net.SocketException
public void setReuseAddress(boolean on) throws java.net.SocketException
setReuseAddress
in class java.net.ServerSocket
java.net.SocketException
public void setSoTimeout(int timeout) throws java.net.SocketException
setSoTimeout
in class java.net.ServerSocket
java.net.SocketException
public java.lang.String toString()
toString
in class java.net.ServerSocket
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 |