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