[En-Nut-Discussion] Problem with UDP sockets

Harald Kipp harald.kipp at egnite.de
Mon Oct 13 09:36:07 CEST 2003


>
>unsigned char *rxBuffer;
>
>rxBuffer = NutHeapAlloc(256);
>
> 
>switch(ret=NutUdpReceiveFrom(udpClient,&ClientAddress,&ClientPort,rxBuffer,sizeof(RxBuffer),4000))

At least sizeof(rxBuffer) should be replaced by 256.

Regards,

Harald




More information about the En-Nut-Discussion mailing list