Hello,
I could do this myself, but to save myself a day or so, is anyone aware of a utility that can be used to send/recv binary data to a specific address : port via UDP?
It would be sort of like an interactive version of Wireshark.
Hello,
I could do this myself, but to save myself a day or so, is anyone aware of a utility that can be used to send/recv binary data to a specific address : port via UDP?
It would be sort of like an interactive version of Wireshark.
It shouldn't take you that long; all you need is something that takes an address and port on the command line, then reads from stdin so you can pipe data into it. In C, that's <50 lines, and it looks like Boost::asio will simplify that in C++:
TCP, UDP and ICMP - Boost 1.38.0
Or if you have perl:
Usage, eg:Code:#!/usr/bin/perl use strict; use warnings FATAL => ('all'); use IO::Socket::INET; my $sock = IO::Socket::INET->new ( PeerAddr => $ARGV[0], PeerPort => $ARGV[1], Proto => 'udp' ); $sock->send($_, 0) while (<STDIN>);
./udpsend.pl localhost 1313 < somedata.bin
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge