Packages that use SAMException
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 SAMException in net.i2p.sam
Methods in net.i2p.sam that throw SAMExceptionModifier 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.booleanSAMSecureSession.approveOrDenySecureSession(Properties i2cpProps, Properties props) Authenticate based on the i2cp username/password.booleanSAMSecureSessionInterface.approveOrDenySecureSession(Properties i2cpProps, Properties props) Within this function, read and accept input from a user to approve a SAM connection.static SAMHandlerSAMHandlerFactory.createSAMHandler(SocketChannel s, Properties i2cpProps, SAMBridge parent) Return the right SAM handler depending on the protocol version required by the client.private static SessionRecordLook up the registered session record for the given nickname, throwing if it has already disappeared.private voidSAMv3Handler.instantiateSession(String style, String nick, Properties allProps, Properties props) Create and start the session object for the given style.private SAMStreamSessionSAMv1Handler.newSAMStreamSession(String destKeystream, String direction, Properties props) Opens a stream session for the destination named on the command line.private static SAMv3StreamSessionSAMv3Handler.newSAMStreamSession(String login) Create a stream session for a login.(package private) SAMStreamSessionSAMv2Handler.newSAMv2StreamSession(String destKeystream, String direction, Properties props) New SAMv2 stream session.static PropertiesSAMUtils.parseParams(String args) Parse SAM parameters, and put them into a Properties objectvoidMasterSession.startForwardingIncoming(Properties props, boolean sendPorts) Throws, use a STREAM subsession instead.voidSAMv3StreamSession.startForwardingIncoming(Properties props, boolean sendPorts) Forward sockets from I2P to the host/port provided.voidSAMv3StreamSession.stopForwardingIncoming()Stop forwarding an incoming connection coming from I2P.Constructors in net.i2p.sam that throw SAMExceptionModifierConstructorDescriptionMasterSession(String nick, SAMv3DatagramServer dgServer, SAMv3Handler handler, Properties props) Build a Session according to information registered with the given nickname.protectedSAMStreamSession(InputStream destStream, String dir, Properties props, SAMStreamReceiver recv) Create a new SAM STREAM session.SAMStreamSession(String dest, String dir, Properties props, SAMStreamReceiver recv) Create a new SAM STREAM session.SAMv1Handler(SocketChannel s, int verMajor, int verMinor, Properties i2cpProps, SAMBridge parent) Create a new SAM version 1 handler.SAMv1Handler(SocketChannel s, int verMajor, int verMinor, SAMBridge parent) Create a new SAM version 1 handler.SAMv2Handler(SocketChannel s, int verMajor, int verMinor, Properties i2cpProps, SAMBridge parent) Create a new SAM version 2 handler.SAMv2Handler(SocketChannel s, int verMajor, int verMinor, SAMBridge parent) Create a new SAM version 2 handler with default I2CP properties.SAMv2StreamSession(InputStream destStream, String dir, Properties props, SAMStreamReceiver recv) Create a new SAM STREAM session.SAMv2StreamSession(String dest, String dir, Properties props, SAMStreamReceiver recv) Create a new SAM STREAM session.SAMv3DatagramSession(String nick, SAMv3DatagramServer dgServer) Build a DatagramSession according to informations registered with the given nicknameSAMv3Handler(SocketChannel s, int verMajor, int verMinor, Properties i2cpProps, SAMBridge parent) Create a new SAM version 3 handler.SAMv3Handler(SocketChannel s, int verMajor, int verMinor, SAMBridge parent) Create a new SAM version 3 handler.SAMv3StreamSession(String login) Create a new SAM STREAM session, according to information registered with the given nickname