|
||||||||||
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
public class DefaultSocketFactory
An implementation of RMIServerSocketFactory that supports backlog and bind address settings
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(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 |
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 ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in interface RMIServerSocketFactory
createServerSocket
in class ServerSocketFactory
port
- the port number
IOException
- if an I/O error occurs during server socket
creationpublic ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket
in class ServerSocketFactory
port
- - the port to listen tobacklog
- - how many connections are queued
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress inetAddress) throws IOException
createServerSocket
in class ServerSocketFactory
port
- - the port to listen tobacklog
- - how many connections are queuedinetAddress
- - the network interface address to use
IOException
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |