|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ssonet.net.impl.SSONETServerSocketFactory
This class creates SSONETServerSockets. When Java-RMI is done over SSONET, this factory is needed.
Field Summary | |
protected org.ssonet.net.SSONETContextFactory |
contextFactory
the SSONETContextFactory used |
Constructor Summary | |
SSONETServerSocketFactory(org.ssonet.net.SSONETContextFactory c)
Creates a SSONETServerSocketFactory and sets a SSONETContextFactory. |
Method Summary | |
java.net.ServerSocket |
createServerSocket(int port)
Returns a ServerSocket, which listens at the specified port. |
java.net.ServerSocket |
createServerSocket(int port,
int clients)
Returns a ServerSocket, which listens at the specified port, and has a wait queue of clients length. |
java.net.ServerSocket |
createServerSocket(int port,
int clients,
java.net.InetAddress bindAddr)
Returns a ServerSocket, which listens at the specified port, and has a wait queue of clients length, and which is bound to
the specified InetAddress. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient org.ssonet.net.SSONETContextFactory contextFactory
Constructor Detail |
public SSONETServerSocketFactory(org.ssonet.net.SSONETContextFactory c)
c
- the SSONETContextFactory which sahll be bound to SSONETServerSockets
created by this object.Method Detail |
public java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
createServerSocket
in interface java.rmi.server.RMIServerSocketFactory
port
- the port the ServerSocket shall listen on
java.io.IOException
- if something goes wrong during creation of the ServerSocketpublic java.net.ServerSocket createServerSocket(int port, int clients) throws java.io.IOException
clients
length.
port
- the port the ServerSocket shall listen onclients
- the length of the wait queue
java.io.IOException
- if something goes wrong during creation of the ServerSocketpublic java.net.ServerSocket createServerSocket(int port, int clients, java.net.InetAddress bindAddr) throws java.io.IOException
clients
length, and which is bound to
the specified InetAddress.
port
- the port the ServerSocket shall listen onclients
- the length of the wait queuebindAddr
- the internet address the server socket is bound to
java.io.IOException
- if something goes wrong during creation of the ServerSocket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |