![]() |
udp packets
Uhm. Was wondering, how do you make and send an arbitrary udp packet? To make it simple(r), say I want to send a blank udp packet to 127.0.0.1. How would I accomplish this? Would I just open up a raw socket and send some quirky binary code?
|
Use socket() to create a SOCK_DGRAM socket, then use sendto() to send a packet... I think it will accept a 0 length buffer, but if not just send a single character.
|
| All times are GMT -5. The time now is 12:19 PM. |