Packages that use SAMHandlerPool.ConnContext
Package
Description
The SAM bridge: a simple text protocol server letting applications in any language use I2P streaming and datagram sessions without implementing the Invisible Internet Client Protocol (I2CP).
Uses of SAMHandlerPool.ConnContext in net.i2p.sam
Fields in net.i2p.sam with type parameters of type SAMHandlerPool.ConnContextModifier and TypeFieldDescriptionprivate final Map<SocketChannel, SAMHandlerPool.ConnContext> SAMHandlerPool._contextsConnection state, by channel.Methods in net.i2p.sam with parameters of type SAMHandlerPool.ConnContextModifier and TypeMethodDescriptionprivate voidSAMHandlerPool.SelectorRunnable.closeOffSelector(SAMHandlerPool.ConnContext ctx) Hand this context's teardown to the pool built for that work, so the selector thread stays free for the other connections it serves.private voidSAMHandlerPool.SelectorRunnable.disconnect(SAMHandlerPool.ConnContext ctx, String reason) Remove the context from the pool and stop the handler.private voidSAMHandlerPool.SelectorRunnable.dispatchLine(SAMHandlerPool.ConnContext ctx, String line) Dispatch a complete command line to a worker thread.private voidSAMHandlerPool.SelectorRunnable.handlePing(SAMHandlerPool.ConnContext ctx, String line) Handle a PING or PONG from the client inline.private voidSAMHandlerPool.SelectorRunnable.readFromChannel(SAMHandlerPool.ConnContext ctx, SocketChannel ch) Read available data from a channel, split into lines, and dispatch complete lines.private voidSAMHandlerPool.SelectorRunnable.sendPing(SAMHandlerPool.ConnContext ctx, long now) Send a PING to the client and record the timestamp.