|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asyncobjects.AsyncUnicastServer<AServerSocket>
net.sf.asyncobjects.net.threading.TServerSocket
public class TServerSocket
Threading server socket
| Constructor Summary | |
|---|---|
TServerSocket(VatRunner runner)
A constructor |
|
| Method Summary | |
|---|---|
Promise<ASocket> |
accept()
Accept connection for the socket |
Promise<Void> |
bind(int port)
Bind socket to specific port |
Promise<Void> |
bind(String host,
int port,
int backlog)
Bind socket to specific host and port |
Promise<Void> |
close()
Close socket |
| Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer |
|---|
dereference, export, isImmediate, myVat, promise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.asyncobjects.AsyncObject |
|---|
dereference, isImmediate |
| Constructor Detail |
|---|
public TServerSocket(VatRunner runner)
runner - runner is used to create vats for streams| Method Detail |
|---|
public Promise<Void> bind(int port)
bind in interface AServerSocketport - a port to bind
AServerSocket.bind(int)
public Promise<Void> bind(String host,
int port,
int backlog)
bind in interface AServerSockethost - an address of interface to bind toport - a port to bindbacklog - a backlog
AServerSocket.bind(String, int, int)public Promise<ASocket> accept()
accept in interface AServerSocketAServerSocket.accept()public Promise<Void> close()
close in interface ACloseableACloseable.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||