Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: UDP socket connect.

by glide (Pilgrim)
on Jan 31, 2008 at 11:28 UTC ( #665325=note: print w/replies, xml ) Need Help??


in reply to UDP socket connect.

That line it's to get a non-blocking IO. You can read more about it in Non-blocking socket read on Windows.

Replies are listed 'Best First'.
Re^2: UDP socket connect.
by leonidlm (Pilgrim) on Jan 31, 2008 at 11:49 UTC
    Thx. Can you explain in more detail about this command? 1. each parameter 2. Why I can't use something from the Sockets module? If I remember right there is a blocking parameter in the New method. 3. Why for Windows? Thx, and sorry for the bulk of quastions :)
      1
    • for the ioctl follow the link
    • for the code, 0x8004667e, see in Re^2: Non-blocking socket read on Windows
    • apparently the ioctl expect a reference as a parameter. Probably you can replace the pack by
      my $nonblocking = 1; ioctl($self, 0x8004667e, \$nonblocking);

      2 Yes, the option (Blocking) is in the IO::Socket::INET. Try it, and remove the ioctl line.

      3 Aren't you using windows? :-)
      When working with sockets, you can't entirely ignore the platform, some time you have to adapt the code (options) to the platform.

        Wow, thank you man, you were very helpful!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://665325]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2018-06-23 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?