|
|||||||||||
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
Copyright (c) 2005
Nested Class Summary | |
protected class |
VirtualServerSocket.PendingClose
|
Constructor Summary | |
VirtualServerSocket()
|
|
VirtualServerSocket(java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress,
int timeout)
Create a new VirtualServerSocket. |
|
VirtualServerSocket(int port)
Create a new VirtualServerSocket. |
|
VirtualServerSocket(int port,
int backlog)
|
|
VirtualServerSocket(int port,
int backlog,
java.net.InetAddress bindAddr)
|
|
VirtualServerSocket(VirtualSocket socket)
|
Method Summary | |
java.net.Socket |
accept()
|
void |
bind(java.net.SocketAddress socketAddress)
|
void |
bind(java.net.SocketAddress socketAddress,
int backlog)
|
void |
close()
|
void |
connect(java.net.SocketAddress remoteAddress)
Connects this socket to the server. |
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)
Connects this socket to the server with a specified timeout value. |
protected void |
doClose()
|
java.nio.channels.ServerSocketChannel |
getChannel()
|
java.net.InetAddress |
getInetAddress()
|
int |
getLocalPort()
|
java.net.SocketAddress |
getLocalSocketAddress()
|
MultiplexingManager |
getMultiplexingManager()
|
int |
getReceiveBufferSize()
|
java.net.InetAddress |
getRemoteAddress()
|
int |
getRemotePort()
|
boolean |
getReuseAddress()
|
javax.net.SocketFactory |
getSocketFactory()
|
int |
getSoTimeout()
|
boolean |
isBound()
|
boolean |
isClosed()
|
boolean |
isConnected()
Returns the connected state of the socket. |
void |
setReceiveBufferSize(int size)
|
void |
setReuseAddress(boolean on)
|
void |
setSocketFactory(javax.net.SocketFactory socketFactory)
|
void |
setSoTimeout(int timeout)
|
java.lang.String |
toString()
|
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) throws java.io.IOException
public VirtualServerSocket(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress, int timeout) throws java.io.IOException
timeout
- TODO
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
- if an error occurs during the connection
java.lang.IllegalArgumentException
- if endpoint is null or is a
SocketAddress subclass not supported by this socketpublic void connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress) throws java.io.IOException
java.io.IOException
- if an error occurs during the connection
java.lang.IllegalArgumentException
- if endpoint is null or is a
SocketAddress subclass not supported by this socketpublic void connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, int timeout) throws java.io.IOException
remoteAddress
- the SocketAddress
localAddress
- TODOtimeout
- the timeout value to be used in milliseconds.
java.io.IOException
- if an error occurs during the connection
java.net.SocketTimeoutException
- if timeout expires before connecting
java.lang.IllegalArgumentException
- if endpoint is null or is a
SocketAddress subclass not supported by this socketpublic MultiplexingManager getMultiplexingManager()
public boolean isConnected()
public java.net.InetAddress getRemoteAddress()
public int getRemotePort()
public javax.net.SocketFactory getSocketFactory()
public void setSocketFactory(javax.net.SocketFactory socketFactory)
socketFactory
- protected void doClose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |