pack or udp ?
Posted: Wed Jul 28, 2004 2:05 pm
Hello Lutz,
Perhaps you can clarify my problem..
this is the string im sending
(net-send-udp "127.0.0.1" 5000 (pack "c c s7 c s4 c" (char 0) (char 1) text012" (char 0) "text" (char 0)))
But im receiving every time a different binary string on the listener side?
I you try to send the message above several times towards an (net-receive-udp 5000 128 ) and unpack the binarydata,
you will see that somting is wrong.. Although overhere its wrong..
perhpas its in the combined function call?
I dont see it... perhpas its the pack combination of srings and bytes? Or
perhpas its the \0x0 byte in the udp packet? or just a complete from function of mine ?
Regards, Norman.
Perhaps you can clarify my problem..
this is the string im sending
(net-send-udp "127.0.0.1" 5000 (pack "c c s7 c s4 c" (char 0) (char 1) text012" (char 0) "text" (char 0)))
But im receiving every time a different binary string on the listener side?
I you try to send the message above several times towards an (net-receive-udp 5000 128 ) and unpack the binarydata,
you will see that somting is wrong.. Although overhere its wrong..
perhpas its in the combined function call?
I dont see it... perhpas its the pack combination of srings and bytes? Or
perhpas its the \0x0 byte in the udp packet? or just a complete from function of mine ?
Regards, Norman.