Class SocksConnecter
java.lang.Object
zmq.ZObject
zmq.Own
zmq.io.net.tcp.TcpConnecter
zmq.io.net.tcp.SocksConnecter
- All Implemented Interfaces:
IPollEvents
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringprivate Address(package private) SocksConnecter.StatusFields inherited from class TcpConnecter
delayedStart, ioObject, RECONNECT_TIMER_ID -
Constructor Summary
ConstructorsConstructorDescriptionSocksConnecter(IOThread ioThread, SessionBase session, Options options, Address addr, Address proxyAddr, boolean delayedStart) -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) voiderror()(package private) intvoidinEvent()Called by I/O thread when file descriptor is ready for reading.(package private) void(package private) intopen()voidoutEvent()Called by I/O thread when file descriptor is ready for writing.(package private) voidparseAddress(String address, String hostname, int port) protected void(package private) intprotected voidprocessTerm(int linger) (package private) voidvoidtimerEvent(int id) Called when timer expires.Methods inherited from class TcpConnecter
close, connectEvent, destroy, toStringMethods inherited from class Own
incSeqnum, isTerminating, launchChild, processDestroy, processOwn, processSeqnum, processTermAck, processTermReq, termChild, terminateMethods inherited from class ZObject
chooseIoThread, connectPending, destroySocket, findEndpoint, getCtx, getTid, pendConnection, processActivateRead, processActivateWrite, processAttach, processBind, processCancel, processHiccup, processPipeTerm, processPipeTermAck, processReap, processReapAck, processReaped, processStop, registerEndpoint, sendActivateRead, sendActivateWrite, sendAttach, sendAttach, sendBind, sendBind, sendCancel, sendDone, sendHiccup, sendInprocConnected, sendOwn, sendPipeTerm, sendPipeTermAck, sendPlug, sendPlug, sendReap, sendReapAck, sendReaped, sendStop, sendTerm, sendTermAck, sendTermReq, setTid, unregisterEndpoint, unregisterEndpointsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IPollEvents
acceptEvent
-
Field Details
-
proxyAddress
-
status
SocksConnecter.Status status -
endpoint
String endpoint
-
-
Constructor Details
-
SocksConnecter
public SocksConnecter(IOThread ioThread, SessionBase session, Options options, Address addr, Address proxyAddr, boolean delayedStart)
-
-
Method Details
-
processPlug
protected void processPlug()- Overrides:
processPlugin classTcpConnecter
-
processTerm
protected void processTerm(int linger) - Overrides:
processTermin classTcpConnecter
-
inEvent
public void inEvent()Description copied from interface:IPollEventsCalled by I/O thread when file descriptor is ready for reading.- Specified by:
inEventin interfaceIPollEvents- Overrides:
inEventin classTcpConnecter
-
outEvent
public void outEvent()Description copied from interface:IPollEventsCalled by I/O thread when file descriptor is ready for writing.- Specified by:
outEventin interfaceIPollEvents- Overrides:
outEventin classTcpConnecter
-
timerEvent
public void timerEvent(int id) Description copied from interface:IPollEventsCalled when timer expires.- Specified by:
timerEventin interfaceIPollEvents- Overrides:
timerEventin classTcpConnecter- Parameters:
id- the ID of the expired timer.
-
initiateConnect
void initiateConnect() -
processServerResponse
int processServerResponse() -
parseAddress
-
connectToProxy
void connectToProxy() -
error
void error() -
startTimer
void startTimer() -
getNewReconnectIvl
int getNewReconnectIvl() -
open
int open() -
checkProxyConnection
void checkProxyConnection()
-