Re: sending data over udp

2010-08-14 Thread Alexander Burger
Hi Dan, must now use UDP and it appears that UDP simply sends PicoLisp data structures. Yes, that's true. I sends a single Lisp data item (number, symbol, or list). Prior to this, I was simply creating a list of byte-sized numbers and using wr to send them via TCP. Is there any way to

Re: sending data over udp

2010-08-14 Thread Alexander Burger
Hi Dan, You mean, for example, by sending a list of numbers representing bytes? e.g. =A0 (udp Host Port (1 2 3 4 5 6 7)) Yes, but without the extra bytes for the list data structure. Unfortunately, the existing 'udp' function cannot do that. It can handle only Lisp data. You could

Re: sending data over udp

2010-08-14 Thread Daniel Elliott
Thank you for the answer and the suggestions. I will look into them furthe= r. - dan On Sat, Aug 14, 2010 at 11:28 AM, Alexander Burger a...@software-lab.de wr= ote: Hi Dan, You mean, for example, by sending a list of numbers representing bytes= ? e.g. =3DA0 (udp Host Port (1 2 3 4 5

Re: sending data over udp

2010-08-14 Thread Alexander Burger
On Sat, Aug 14, 2010 at 11:28 AM, Alexander Burger a...@software-lab.de wr= ote: You could make your own custom function, e.g. with inline-C using 'gcc' =A0 (load @lib/gcc.l) =A0 (gcc net NIL 'rawUdp) =A0 any rawUdp(any ex) { =A0 =A0 =A0... =A0 =A0 =A0byte buf[UDPMAX]; You

sending data over udp

2010-08-13 Thread Daniel Elliott
A few weeks ago I asked about sending data over TCP. Well, my program must now use UDP and it appears that UDP simply sends PicoLisp data structures. Prior to this, I was simply creating a list of byte-sized numbers and using wr to send them via TCP. Is there any way to do something similar