in reply to Re^2: UDP socket connect.
in thread UDP socket connect.

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.

  • Replies are listed 'Best First'.
    Re^4: UDP socket connect.
    by leonidlm (Pilgrim) on Jan 31, 2008 at 14:56 UTC
      Wow, thank you man, you were very helpful!