OT - advice on async I/O pls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Apologies for this off-topic post. Pls point me elsewhere if
there's a more suitable list.

I'm using sendto and rcvfrom to handle a UDP connection to a
remote host. I send a msg using sendto, and then wait for
a reply using recvfrom, but I would like to be able to rapidly
timeout the rcvfrom if the remote host is down.

The async I/O set of commands aio_* offer what looks like
the perfect solution, but they require that I use aio_read
and aio_write (equivalent to read(2) and write(2) ) rather
than sendto/recvfrom.

I'd rather not sit in a loop waiting for a reply with
non-blocking I/O enabled. I'd much prefer to use blocking
I/O and have the recvfom come back to me either when the
input has completed, or it has timed out.

Any suggestions how I might achieve this?

Cheers,
Terry


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux