|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.ServerSocketFactory
org.jboss.net.sockets.DefaultSocketFactory
An implementation of RMIServerSocketFactory that supports backlog and bind address settings
Field Summary | |
protected int |
backlog
|
protected InetAddress |
bindAddress
|
Constructor Summary | |
DefaultSocketFactory()
Create a socket factory that binds on any address with a default backlog of 200 |
|
DefaultSocketFactory(InetAddress bindAddress)
Create a socket factory with the given bind address |
|
DefaultSocketFactory(InetAddress bindAddress,
int backlog)
Create a socket factory with the given bind address and backlog |
|
DefaultSocketFactory(int backlog)
Create a socket factory with the given backlog |
Method Summary | |
ServerSocket |
createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates an anonymous port). |
ServerSocket |
createServerSocket(int port,
int backlog)
|
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress inetAddress)
|
boolean |
equals(Object obj)
|
String |
getBindAddress()
|
int |
hashCode()
|
void |
setBindAddress(InetAddress bindAddress)
|
void |
setBindAddress(String host)
|
Methods inherited from class javax.net.ServerSocketFactory |
createServerSocket, getDefault |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient InetAddress bindAddress
protected int backlog
Constructor Detail |
public DefaultSocketFactory()
public DefaultSocketFactory(InetAddress bindAddress)
public DefaultSocketFactory(int backlog)
public DefaultSocketFactory(InetAddress bindAddress, int backlog)
Method Detail |
public String getBindAddress()
public void setBindAddress(String host) throws UnknownHostException
UnknownHostException
public void setBindAddress(InetAddress bindAddress)
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in interface RMIServerSocketFactory
port
- the port number
IOException
- if an I/O error occurs during server socket
creationpublic ServerSocket createServerSocket(int port, int backlog) throws IOException
port
- - the port to listen tobacklog
- - how many connections are queued
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress inetAddress) throws IOException
port
- - the port to listen tobacklog
- - how many connections are queuedinetAddress
- - the network interface address to use
IOException
public boolean equals(Object obj)
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |