Different targets, as in different ip destinations for each datagram? That puts you out of luck in my mind I'm afraid.
Due to the fact that the sending content is not static i can't use sendfile.
Is there a way to merge differenent sendto with different targets to one system call?
if there's no ready-made solution, I would be glad for design suggestions of such a wrapper kernel module.if you can pick off data bound for the same destination, you can coalesce them in userspace from within your app, and only call sendto after a certain data threshold is reached. That would reduce your sendto overhead somewhat. Other than that, I think you're out of luck.
Neil
thanks
On Mon, 2004-12-20 at 13:07 -0500, Neil Horman wrote:
Nir Dremer wrote:Dependent on your needs and flexibility in writing your application, the sendfile() call might help you out some.I'm looking for a way to perform several SendTo command from user-space in one system call.. is there any way to do so?
The purpose is to avoid the system call overhead due to the massive use of SendTo in my code.
any help will be appreciated...
(copy of the message sent to c-programming mailing list)
Cheers, Nir Dremer ---------------------------------------------------------------------------------------- "Real leaders are ordinary people with extraordinary determinations." -- John Seaman Garns
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx <mailto:majordomo@xxxxxxxxxxxxxxx> More majordomo info at http://vger.kernel.org/majordomo-info.html
Neil
-- /*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *nhorman@xxxxxxxxxx *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/ - : send the line "unsubscribe linux-net" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html