public class TcpListener extends Own implements IPollEvents
| Modifier and Type | Field and Description |
|---|---|
private TcpAddress |
address |
private java.lang.String |
endpoint |
private java.nio.channels.ServerSocketChannel |
handle |
private IOObject |
ioObject |
private static boolean |
isWindows |
private SocketBase |
socket |
| Constructor and Description |
|---|
TcpListener(IOThread ioThread,
SocketBase socket,
Options options) |
| Modifier and Type | Method and Description |
|---|---|
private java.nio.channels.SocketChannel |
accept() |
void |
acceptEvent() |
private void |
close() |
void |
connectEvent() |
void |
destroy() |
java.lang.String |
getAddress() |
void |
inEvent() |
void |
outEvent() |
protected void |
processPlug() |
protected void |
processTerm(int linger) |
int |
setAddress(java.lang.String addr) |
void |
timerEvent(int id) |
incSeqnum, isTerminating, launchChild, processDestroy, processOwn, processSeqnum, processTermAck, processTermReq, registerTermAcks, termChild, terminate, unregisterTermAckchooseIoThread, destroySocket, findEndpoint, getCtx, getTid, processActivateRead, processActivateWrite, processAttach, processBind, processCommand, processHiccup, processPipeTerm, processPipeTermAck, processReap, processReaped, processStop, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendDone, sendHiccup, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, unregisterEndpointsprivate static boolean isWindows
private final TcpAddress address
private java.nio.channels.ServerSocketChannel handle
private SocketBase socket
private java.lang.String endpoint
private final IOObject ioObject
public TcpListener(IOThread ioThread, SocketBase socket, Options options)
protected void processPlug()
processPlug in class ZObjectprotected void processTerm(int linger)
processTerm in class Ownpublic void acceptEvent()
acceptEvent in interface IPollEventsprivate void close()
public java.lang.String getAddress()
public int setAddress(java.lang.String addr)
private java.nio.channels.SocketChannel accept()
public void inEvent()
inEvent in interface IPollEventspublic void outEvent()
outEvent in interface IPollEventspublic void connectEvent()
connectEvent in interface IPollEventspublic void timerEvent(int id)
timerEvent in interface IPollEvents