At 2004-03-20 00:30:02 +0000, [EMAIL PROTECTED] wrote:
>
> I checked sendto manual and it says that it sends data on connected
> sockets.

No, it doesn't. You can use sendto(2) on any socket, connected or not.
You need a connected socket only for send(2). Furthermore, please note
that there is no such thing as a UDP "connection" by definition, since
UDP is a connectionless protocol.

The kernel allows you to call connect(2) on UDP sockets, to specify an
arbitrary peer address, so that you can use send(2). But that's just a
convenience.

> This gives me hint that to send such a packet I have to write a
> program that tries to connect on that port using UDP. 

Here's another hint: ask Google about "UDP client example".

-- ams

_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to