in reply to Simple UDP example anyone?
Recipe 17.5 of the Perl Cookbook is handy:
perlipc has other examples. IO::Socket is slightly easier than Socket, and translating between the two isn't terribly difficult.use IO::Socket; use strict; my $sock = IO::Socket::INET->new( Proto => 'udp', PeerPort => 5000, PeerAddr => 'hostname', ) or die "Could not create socket: $!\n"; $sock->send('a file to have your advice') or die "Send error: $!\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Simple UDP example anyone?
by mitd (Curate) on Dec 05, 2001 at 14:54 UTC | |
IO::Socket
by Ea (Chaplain) on Dec 05, 2001 at 16:44 UTC | |
by vek (Prior) on Dec 05, 2001 at 20:36 UTC | |
by tradez (Pilgrim) on Dec 06, 2001 at 01:34 UTC | |
by Ea (Chaplain) on Dec 06, 2001 at 15:13 UTC |
In Section
Seekers of Perl Wisdom