PGEN-Util

Function Usage

Name

pgen_send_to_pcap pgen_recv_from_pcap – send/recv to pcap files.

Synopsis

 

Description

pgen_send_to_pcap() sends binary to pcap file.
pgen_recv_from_pcap() recvs binary from pcap file.

fp, 1st argument is file-pointer that opened fopen();
buf, 2nd argument is pointer of send/recv buffer.
len, 3rd argument is buffer length.

pgen_hex() is basic hexdump function.

buf, 1st argument is pointer of dump buffer.
len, 2nd argument is buffer length.

Return Value

pgen_send_to_pcap() and pgen_recv_from_pcap() return send/recved length.
pgen_hex() is void function, so it does’t return  values.

Errors

Comments are closed.