Package org.jnode.net

Examples of org.jnode.net.SocketBuffer.trim()


        // Prefix the ICMP header to the response buffer
        icmpHdr.prefixTo(skbuf);
        // Append the original message to the response buffer
        skbuf.append(srcBuf);
        // / RFC says return as much as we can without exceeding 576 bytes.
        skbuf.trim(576);

        ipService.transmit(ipHdr, skbuf);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.