Package net.i2p.sam

Class SAMv1Handler

    • Constructor Detail

      • SAMv1Handler

        public SAMv1Handler​(SocketChannel s,
                            int verMajor,
                            int verMinor,
                            SAMBridge parent)
                     throws SAMException,
                            IOException
        Create a new SAM version 1 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 1)
        verMinor - SAM minor version to manage
        Throws:
        SAMException
        IOException
      • SAMv1Handler

        public SAMv1Handler​(SocketChannel s,
                            int verMajor,
                            int verMinor,
                            Properties i2cpProps,
                            SAMBridge parent)
                     throws SAMException,
                            IOException
        Create a new SAM version 1 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 1)
        verMinor - SAM minor version to manage
        i2cpProps - properties to configure the I2CP connection (host, port, etc)
        Throws:
        SAMException
        IOException