#include <udp.h>
Inheritance diagram for usipp::UDP:

Public Methods | |
| UDP (const char*) | |
| virtual | ~UDP () |
| UDP (const UDP &) | |
| UDP& | operator= (const UDP&) |
| u_int16_t | get_srcport () |
| u_int16_t | get_dstport () |
| u_int16_t | get_len () |
| u_int16_t | get_udpsum () |
| int | set_srcport (u_int16_t) |
| int | set_dstport (u_int16_t) |
| int | set_len (u_int16_t) |
| int | set_udpsum (u_int16_t) |
| udphdr | get_udphdr () |
| virtual int | sendpack (void*, size_t) |
| virtual int | sendpack (char*) |
| virtual int | sniffpack (void*, size_t) |
| virtual int | init_device (char *, int promisc, size_t snaplen) |
|
|
Expects Host. |
|
|
Destructor |
|
|
Copy-Constructor |
|
|
Get the destinationport of the UDP-datagram |
|
|
Return length of UDP-header plus contained data. |
|
|
Get the sourceport of UDP-datagram. |
|
|
Return complete UDP header. Usefull for some kinds of ICMP messages |
|
|
Return the checksum of UDP-datagram. |
|
|
Initialize a device ("eth0" for example) for packet- capturing. It MUST be called before sniffpack() is launched. Set 'promisc' to 1 if you want the device running in promiscous mode. Fetch at most 'snaplen' bytes per call. Reimplemented from usipp::IP. |
|
|
Assign-operator |
|
|
Send an UDP-datagramm, containing 'paylen' bytes of data. Reimplemented from usipp::IP. |
|
|
Set the destinationport in the UDP-header. |
|
|
Set the length of the UDP-datagramm. |
|
|
Set the sourceport in the UDP-header. |
|
|
Set the UDP-checksum. Calling this function with s != 0 will prevent sendpack() from setting the checksum!!! |
|
|
Capture packets that are not for our host. Reimplemented from usipp::IP. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000