haven has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I use IO::Socket::INET for tcp servers galore and have run into the trouble of using it with udp. You see udp does not handle the requests the same and so features I've come to love such as 'accept' do not work. Any idea if this is going to change or is there a replacement out there? Your wisdom is appreciated. THX

Replies are listed 'Best First'.
Re: IO::Socket::INET and UDP
by chromatic (Archbishop) on May 25, 2003 at 04:31 UTC

    TCP and UDP are completely different protocols. They don't do the same thing. TCP is a phone call. UDP is a postcard. See the "Message Passing" section of perlipc for more information -- you can use IO::Socket, but you can't use accept().

Re: IO::Socket::INET and UDP
by Zaxo (Archbishop) on May 25, 2003 at 03:17 UTC

    I'm not aware of any replacement in the works. Do you have a bug report?

    What service are you connecting to? Have you checked that you speak to it properly?

    Are you using the module correctly? What arguments do you give the constructor? Show us the code.

    After Compline,
    Zaxo