AW: [En-Nut-Discussion] NutTcpSend / NutTcpReceive

Joachim Skale joachim.skale at tele2.at
Thu Nov 24 10:30:16 CET 2005


hi, 

i've just controlled the output on the TCP Server with Ethereal.
Everything is okay.

The Data are correct
f.e. 
03 81 09 00 00 00 04 03 02 01 00
which are sent from Server to Client.

But at Client Side i got
different numbers for the first 2 Bytes, the Rest is okay.


What the ..... is going on there? 
There isn't any thread or something else who can change the values.


Joachim


-----Ursprungliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Harald Kipp
Gesendet: Mittwoch, 23. November 2005 17:26
An: Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] NutTcpSend / NutTcpReceive


Hello Joachim,

At 14:12 23.11.2005 +0100, you wrote:

>         uint8 answer[256] = { 0 };
>         u_char cmd[256];

This one costs 512 Bytes of stack.


>         uint8 answer[256] = { 0 };
>         u_char cmd[256];

Same here. Better use malloc()/free() or global variables.

Harald

_______________________________________________
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