[COLOR=#0000ff][B]while[/B][/COLOR] [COLOR=#006400]([/COLOR]p2[COLOR=#006400].[/COLOR]param[COLOR=#006400][[/COLOR][COLOR=#00008b]9[/COLOR][COLOR=#006400]]!=[/COLOR][COLOR=#00008b]0[/COLOR][COLOR=#006400])[/COLOR] [COLOR=#006400]{[/COLOR]
[COLOR=#0000ff][B]if[/B][/COLOR] [COLOR=#006400]([/COLOR]buffer[COLOR=#006400]!=[/COLOR]NULL[COLOR=#006400])[/COLOR] [COLOR=#191970][B]memcpy[/B][/COLOR][COLOR=#006400]([/COLOR]buffer[COLOR=#006400]+[/COLOR]len[COLOR=#006400],[/COLOR]p2[COLOR=#006400].[/COLOR]udata[COLOR=#006400],[/COLOR]p2[COLOR=#006400].[/COLOR]udlen[COLOR=#006400]);[/COLOR]
dc[COLOR=#006400]->[/COLOR]resultPointer[COLOR=#006400]=[/COLOR]p2[COLOR=#006400].[/COLOR]udata[COLOR=#006400];[/COLOR]
dc[COLOR=#006400]->[/COLOR]_resultPointer[COLOR=#006400]=[/COLOR]p2[COLOR=#006400].[/COLOR]udata[COLOR=#006400];[/COLOR]
len[COLOR=#006400]+=[/COLOR]p2[COLOR=#006400].[/COLOR]udlen[COLOR=#006400];[/COLOR]
[COLOR=#191970][B]printf[/B][/COLOR][COLOR=#006400]([/COLOR][COLOR=#ff00ff]"more data\n"[/COLOR][COLOR=#006400]);[/COLOR]
pam[COLOR=#006400][[/COLOR][COLOR=#00008b]7[/COLOR][COLOR=#006400]]=[/COLOR]p2[COLOR=#006400].[/COLOR]param[COLOR=#006400][[/COLOR][COLOR=#00008b]7[/COLOR][COLOR=#006400]];[/COLOR]
res[COLOR=#006400]=[/COLOR][COLOR=#191970][B]daveBuildAndSendPDU[/B][/COLOR][COLOR=#006400]([/COLOR]dc[COLOR=#006400],[/COLOR] [COLOR=#006400]&[/COLOR]p2[COLOR=#006400],[/COLOR]pam[COLOR=#006400],[/COLOR] [COLOR=#0000ff][B]sizeof[/B][/COLOR][COLOR=#006400]([/COLOR]pam[COLOR=#006400]),[/COLOR] NULL[COLOR=#006400],[/COLOR] [COLOR=#00008b]1[/COLOR][COLOR=#006400]);[/COLOR]
[COLOR=#0000ff][B]if[/B][/COLOR] [COLOR=#006400]([/COLOR]res[COLOR=#006400]==0xa[/COLOR][COLOR=#006400]) [/COLOR][COLOR=#000080]break[/COLOR][COLOR=#006400];[/COLOR] // Ich meine, bei einem so aufgebauten Antwortpaket wird auch 0xa zurückgegeben...
if (res!=daveOk) return res; // alle anderen Fehler nicht ignorieren.
[COLOR=#006400]}[/COLOR]