Package net.i2p.sam

Class SAMv3Handler

    • Field Detail

      • sSessionsHash

        public static final SessionsDB sSessionsHash
    • Constructor Detail

      • SAMv3Handler

        public SAMv3Handler​(SocketChannel s,
                            int verMajor,
                            int verMinor,
                            SAMBridge parent)
                     throws SAMException,
                            IOException
        Create a new SAM version 3 handler. This constructor expects that the SAM HELLO message has been still answered (and stripped) from the socket input stream.
        Parameters:
        s - Socket attached to a SAM client
        verMajor - SAM major version to manage (should be 3)
        verMinor - SAM minor version to manage
        Throws:
        SAMException
        IOException
      • SAMv3Handler

        public SAMv3Handler​(SocketChannel s,
                            int verMajor,
                            int verMinor,
                            Properties i2cpProps,
                            SAMBridge parent)
                     throws SAMException,
                            IOException
        Create a new SAM version 3 handler. This constructor expects that the SAM HELLO message has been still answered (and stripped) from the socket input stream.
        Parameters:
        s - Socket attached to a SAM client
        verMajor - SAM major version to manage (should be 3)
        verMinor - SAM minor version to manage
        i2cpProps - properties to configure the I2CP connection (host, port, etc)
        Throws:
        SAMException
        IOException