Packages that use SAMv3Handler
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 SAMv3Handler in net.i2p.sam
Fields in net.i2p.sam declared as SAMv3HandlerModifier and TypeFieldDescriptionprivate final SAMv3HandlerMasterSession.handlerThe handler serving the SAM sessions.(package private) final SAMv3HandlerSAMHandlerPool.ConnContext.handlerThe handler serving this connection.private final SAMv3HandlerSAMv3DatagramSession.handlerThe handler that created this session.private final SAMv3HandlerSAMv3RawSession.handlerThe handler that created this session.private final SAMv3HandlerSAMv3StreamSession.ConnectTask.handlerThe handler that started the connect.private final SAMv3HandlerSessionRecord.m_handlerThe handler serving the session's commands.Methods in net.i2p.sam that return SAMv3HandlerMethods in net.i2p.sam with parameters of type SAMv3HandlerModifier and TypeMethodDescriptionvoidMasterSession.accept(SAMv3Handler handler, boolean verbose) Throws, use a STREAM subsession instead.voidSAMv3StreamSession.accept(SAMv3Handler handler, boolean verbose) Accept a single incoming I2P stream and pipe data through the handler's socket.voidMasterSession.connectAsync(SAMv3Handler handler, String dest, Properties props) Throws, use a STREAM subsession instead.voidSAMv3StreamSession.connectAsync(SAMv3Handler handler, String dest, Properties props) Initiate an async STREAM CONNECT.private voidSAMv3StreamSession.doAccept(SAMv3Handler handler, boolean verbose) Blocking accept executed in a dedicated thread so pool workers are never blocked waiting for incoming I2P connections.(package private) static SocketAddressSAMv3RawSession.getSocketAddress(Properties props, SAMv3Handler handler) Get the socket address from session properties.(package private) voidSAMHandlerPool.register(SAMv3Handler handler) Register a v3 handler with the pool.(package private) voidSAMHandlerPool.unregister(SAMv3Handler handler) Remove a handler's socket from the pool.(package private) voidSAMBridge.unregisterHandlerFromPool(SAMv3Handler handler) Remove a v3 handler from the shared handler pool.Constructors in net.i2p.sam with parameters of type SAMv3HandlerModifierConstructorDescription(package private)ConnContext(SAMv3Handler handler) Builds the state for one client connection.(package private)ConnectTask(SAMv3Handler handler, Destination dest, I2PSocketOptions opts, boolean verbose, String nick) Builds the connect task.MasterSession(String nick, SAMv3DatagramServer dgServer, SAMv3Handler handler, Properties props) Build a Session according to information registered with the given nickname.SAMv3DatagramSession(String nick, Properties props, SAMv3Handler handler, I2PSession isess, int listenProtocol, int listenPort, SAMv3DatagramServer dgServer) Build a Datagram Session on an existing i2p session registered with the given nicknameSAMv3RawSession(String nick, Properties props, SAMv3Handler handler, I2PSession isess, int listenProtocol, int listenPort, SAMv3DatagramServer dgServer) Build a Raw Session on an existing i2p session registered with the given nicknameSAMv3StreamSession(String login, Properties props, SAMv3Handler handler, I2PSocketManager mgr, int listenPort) Build a Stream Session on an existing I2P session registered with the given nicknameSessionRecord(String dest, Properties props, SAMv3Handler handler) Create a new session record.