01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Comments<br />

typedef struct tag_cnt_packet<br />

{<br />

unsigned int far * cnt_all_packets; // count all incoming Ethernet packets<br />

unsigned int far * cnt_ip_packets; // count incoming IP packets<br />

unsigned int far * cnt_arp_packets; // count incoming ARP packets<br />

unsigned int far * cnt_tcp_packets; // count incoming TCP packets<br />

unsigned int far * cnt_udp_packets; // count incoming UDP packets<br />

unsigned int far * cnt_icmp_packets; // count incoming ICMP packets<br />

unsigned int far * cnt_all_sended_packets; // count all sent Ethernet packets<br />

unsigned int far * cnt_ip_sended_packets; // count all sent IP packets<br />

unsigned int far * cnt_arp_sended_packets; // count all sent ARP packets<br />

unsigned int far * cnt_tcp_sended_packets; // count all sent TCP packets<br />

unsigned int far * cnt_udp_sended_packets; // count all sent UDP packets<br />

unsigned int far * cnt_icmp_sended_packets; // count all sent ICMP packets<br />

unsigned int far * cnt_ip_chksum_errs; // checksum errors on incoming IP packets<br />

unsigned int far * cnt_udp_chksum_errs; // checksum errors on incoming UDP packets<br />

unsigned int far * cnt_tcp_chksum_errs; // checksum errors on incoming TCP packets<br />

unsigned int far * cnt_eth_errs; // errors on incoming Ethernet packets<br />

} Packet_Count;<br />

The counters count_all_packets and count_all_sended_packets count only Ethernet packets.<br />

Other counters also count the packets from and to other devices e.g. local loopback packets and PPP packets.<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function TCPIP_STATISTICS - Access packet counts.<br />

PasCallBack<br />

Comments<br />

typedef struct tag_PasCallBack<br />

{<br />

int sd; // socket descriptor<br />

int event; // occurred event<br />

} PasCallBack;<br />

The pointer to this structure will be passed to a Pascal callback function in the registers ES:DI. You can read out the<br />

information about the socket and the event which has triggered the callback function.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Ping<br />

To register a Pascal callback function see API_REGISTER_CALLBACK_PASCAL<br />

Page 170 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!