|
|||||||||||
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.SinglePortVirtualServerSocket
Copyright (c) 2005
Constructor Summary | |
SinglePortVirtualServerSocket()
|
|
SinglePortVirtualServerSocket(java.net.InetSocketAddress remoteAddress,
java.net.InetSocketAddress localAddress)
Create a new SinglePortVirtualServerSocket. |
|
SinglePortVirtualServerSocket(int port)
Create a new SinglePortVirtualServerSocket. |
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 socketAddress)
Connects this socket to the server. |
void |
connect(java.net.SocketAddress socketAddress,
int timeout)
Connects this socket to the server with a specified timeout value. |
java.nio.channels.ServerSocketChannel |
getChannel()
|
java.net.InetAddress |
getInetAddress()
|
int |
getLocalPort()
|
java.net.SocketAddress |
getLocalSocketAddress()
|
java.net.InetAddress |
getRemoteAddress()
|
boolean |
isBound()
|
boolean |
isClosed()
|
boolean |
isConnected()
Returns the connected state of the socket. |
java.lang.String |
toString()
|
Methods inherited from class java.net.ServerSocket |
getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SinglePortVirtualServerSocket() throws java.io.IOException
java.io.IOException
public SinglePortVirtualServerSocket(int port) throws java.io.IOException
port
-
java.io.IOException
public SinglePortVirtualServerSocket(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress) throws java.io.IOException
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 boolean isBound()
public boolean isClosed()
public java.lang.String toString()
public void connect(java.net.SocketAddress socketAddress) 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 socketpublic void connect(java.net.SocketAddress socketAddress, int timeout) throws java.io.IOException
socketAddress
- the SocketAddress
timeout
- 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 boolean isConnected()
public java.net.InetAddress getRemoteAddress()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |