Package org.apache.directory.server.dhcp.io

Examples of org.apache.directory.server.dhcp.io.DhcpMessageDecoder


*/
public class DhcpDecoder implements ProtocolDecoder
{
    public void decode( IoSession session, IoBuffer in, ProtocolDecoderOutput out ) throws DhcpException
    {
        DhcpMessageDecoder decoder = new DhcpMessageDecoder();
        out.write( decoder.decode( in.buf() ) );
    }
View Full Code Here


    @Test
    public void testParseDiscover() throws Exception
    {
        requestByteBuffer = getByteBufferFromFile( "DHCPDISCOVER.pdu" );

        DhcpMessageDecoder decoder = new DhcpMessageDecoder();
        DhcpMessage dhcpRequest = decoder.decode( requestByteBuffer );

        print( dhcpRequest );
    }
View Full Code Here

    @Test
    public void testParseOffer() throws Exception
    {
        requestByteBuffer = getByteBufferFromFile( "DHCPOFFER.pdu" );

        DhcpMessageDecoder decoder = new DhcpMessageDecoder();
        DhcpMessage dhcpRequest = decoder.decode( requestByteBuffer );

        print( dhcpRequest );
    }
View Full Code Here

    @Test
    public void testParseDiscover() throws Exception
    {
        requestByteBuffer = getByteBufferFromFile( "DHCPDISCOVER.pdu" );

        DhcpMessageDecoder decoder = new DhcpMessageDecoder();
        DhcpMessage dhcpRequest = decoder.decode( requestByteBuffer );

        print( dhcpRequest );
    }
View Full Code Here

    @Test
    public void testParseOffer() throws Exception
    {
        requestByteBuffer = getByteBufferFromFile( "DHCPOFFER.pdu" );

        DhcpMessageDecoder decoder = new DhcpMessageDecoder();
        DhcpMessage dhcpRequest = decoder.decode( requestByteBuffer );

        print( dhcpRequest );
    }
View Full Code Here

*/
public class DhcpDecoder implements ProtocolDecoder
{
    public void decode( IoSession session, IoBuffer in, ProtocolDecoderOutput out ) throws DhcpException
    {
        DhcpMessageDecoder decoder = new DhcpMessageDecoder();
        out.write( decoder.decode( in.buf() ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.dhcp.io.DhcpMessageDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.