[En-Nut-Discussion] UDP broadcast packet

WoonFoong wfloh at essex.ac.uk
Tue Aug 10 14:36:40 CEST 2004

NutUdpSendTo(sock, adr, 3021, "Data data data data data",0x18).
the last one will tell udpsend function how many byte u want to send on the
"Data data data data data"
normally we use something like char *temp="Data data data data data";
NutUdpSendTo(sock, adr, 3021,temp,strlen(temp));

Also it was possible to send multicast on the NutOS

----- Original Message ----- 
From: "Zdenek Halbich" <halbich at satoya.cz>
To: <en-nut-discussion at egnite.de>
Sent: Tuesday, August 10, 2004 8:54 AM
Subject: [En-Nut-Discussion] UDP broadcast packet

> Hi all!
> I have a problem with UDP broadcast packets.
> I open socket by using function sock = NutUdpCreateSocket(port)
> and next I send UDP packets to IP
> by using function NutUdpSendTo(sock, adr, 3021, "Data data data data
> 0x18).
> But this function send only eighteen byte. I don´t understand it. On
> www.ethernut.de
> I found nothing about UDP and broadcast communication.
> Could You help me, please?
> Thank you very much.
> Halba
> ---
> Odchoz?zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.736 / Virov?báze: 490 - datum vydán? 9.8.2004
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

More information about the En-Nut-Discussion mailing list