erjang.driver.tcp_inet
Class Packet

java.lang.Object
  extended by erjang.driver.tcp_inet.Packet

public class Packet
extends java.lang.Object


Constructor Summary
Packet()
           
 
Method Summary
static void get_body(PacketParseType htype, java.nio.ByteBuffer out)
           
static int get_length(PacketParseType htype, byte[] data, int ptr, int n, int max_plen, int trunc_len, IntCell statep)
           
static
<T> int
parse_http(byte[] data, int buf, int len, IntCell statep, PacketCallbacks<T> pcb, T arg)
           
static
<T> int
parse_ssl(byte[] buf, int start, int len, PacketCallbacks<T> pcb, T arg)
           
static
<T> int
parse(PacketParseType htype, byte[] data, int buf, int len, IntCell statep, PacketCallbacks<T> pcb, T arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Packet

public Packet()
Method Detail

get_body

public static void get_body(PacketParseType htype,
                            java.nio.ByteBuffer out)

parse

public static <T> int parse(PacketParseType htype,
                            byte[] data,
                            int buf,
                            int len,
                            IntCell statep,
                            PacketCallbacks<T> pcb,
                            T arg)
                 throws Pausable
Throws:
Pausable

parse_http

public static <T> int parse_http(byte[] data,
                                 int buf,
                                 int len,
                                 IntCell statep,
                                 PacketCallbacks<T> pcb,
                                 T arg)
                      throws Pausable
Throws:
Pausable

parse_ssl

public static <T> int parse_ssl(byte[] buf,
                                int start,
                                int len,
                                PacketCallbacks<T> pcb,
                                T arg)

get_length

public static int get_length(PacketParseType htype,
                             byte[] data,
                             int ptr,
                             int n,
                             int max_plen,
                             int trunc_len,
                             IntCell statep)