public class Router extends SocketBase
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Router.Outpipe |
static class |
Router.RouterSession |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<Pipe> |
anonymousPipes |
private Pipe |
currentOut |
private FQ |
fq |
private boolean |
handover |
private boolean |
identitySent |
private boolean |
mandatory |
private boolean |
moreIn |
private boolean |
moreOut |
private int |
nextPeerId |
private java.util.Map<Blob,Router.Outpipe> |
outpipes |
private boolean |
prefetched |
private Msg |
prefetchedId |
private Msg |
prefetchedMsg |
errno| Modifier and Type | Method and Description |
|---|---|
private boolean |
identifyPeer(Pipe pipe) |
protected void |
rollback() |
void |
xattachPipe(Pipe pipe,
boolean icanhasall) |
protected boolean |
xhasIn() |
protected boolean |
xhasOut() |
void |
xpipeTerminated(Pipe pipe) |
void |
xreadActivated(Pipe pipe) |
protected Msg |
xrecv() |
protected boolean |
xsend(Msg msg) |
boolean |
xsetsockopt(int option,
java.lang.Object optval) |
void |
xwriteActivated(Pipe pipe) |
acceptEvent, bind, checkTag, close, connect, connectEvent, create, destroy, errno, eventAccepted, eventAcceptFailed, eventBindFailed, eventClosed, eventCloseFailed, eventConnectDelayed, eventConnected, eventConnectRetried, eventDisconnected, eventListening, getFD, getMailbox, getSocketOpt, getsockoptx, hasIn, hasOut, hiccuped, inEvent, monitor, monitorEvent, outEvent, pipeTerminated, processBind, processDestroy, processStop, processTerm, readActivated, recv, send, setSocketOpt, startReaping, stop, stopMonitor, termEndpoint, timerEvent, toString, typeString, writeActivated, xhiccupedincSeqnum, isTerminating, launchChild, processOwn, processSeqnum, processTermAck, processTermReq, registerTermAcks, termChild, terminate, unregisterTermAckchooseIoThread, destroySocket, findEndpoint, getCtx, getTid, processActivateRead, processActivateWrite, processAttach, processCommand, processHiccup, processPipeTerm, processPipeTermAck, processPlug, processReap, processReaped, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendDone, sendHiccup, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, unregisterEndpointsprivate final FQ fq
private boolean prefetched
private boolean identitySent
private Msg prefetchedId
private Msg prefetchedMsg
private boolean moreIn
private final java.util.Set<Pipe> anonymousPipes
private final java.util.Map<Blob,Router.Outpipe> outpipes
private Pipe currentOut
private boolean moreOut
private int nextPeerId
private boolean mandatory
private boolean handover
public Router(Ctx parent, int tid, int sid)
public void xattachPipe(Pipe pipe, boolean icanhasall)
xattachPipe in class SocketBasepublic boolean xsetsockopt(int option,
java.lang.Object optval)
xsetsockopt in class SocketBasepublic void xpipeTerminated(Pipe pipe)
xpipeTerminated in class SocketBasepublic void xreadActivated(Pipe pipe)
xreadActivated in class SocketBasepublic void xwriteActivated(Pipe pipe)
xwriteActivated in class SocketBaseprotected boolean xsend(Msg msg)
xsend in class SocketBaseprotected Msg xrecv()
xrecv in class SocketBaseprotected void rollback()
protected boolean xhasIn()
xhasIn in class SocketBaseprotected boolean xhasOut()
xhasOut in class SocketBaseprivate boolean identifyPeer(Pipe pipe)