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.
Printable View
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