pseudoconn.rb
# This class holds everything necessary to manage a single TCP or UDP
# connection over IPv4 or IPv6.
This class holds everything necessary to manage a single TCP or UDP
connection over IPv4 or IPv6.
This class holds everything necessary to manage a single TCP or UDP connection over IPv4 or IPv6 .
def to_pcap
    pcap_hdr = "\xd4\xc3\xb2\xa1\x02\x00\x04\x00" +
               "\x00\x00\x00\x00\x00\x00\x00\x00" +
               "\xff\xff\x00\x00\x01\x00\x00\x00"
    return pcap_hdr + @body
  end
def to_pcap pcap_hdr = "\xd4\xc3\xb2\xa1\x02\x00\x04\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\xff\xff\x00\x00\x01\x00\x00\x00" return pcap_hdr + @body end
This class holds everything necessary to manage a single TCP or UDP
connection over IPv4 or IPv6.
This class holds everything necessary to manage a single TCP or UDP connection over IPv4 or IPv6 .