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 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 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];
>
> =A0 =A0 =A0...
> =A0 =A0 =A0fill 'buf' with bytes
> =A0 =A0 =A0sd =3D socket(AF_INET, SOCK_DGRAM, 0)
> =A0 =A0 =A0sendto(sd, buf, ...)
> =A0 =A0 =A0close(sd);
>
> =A0 }
> =A0 /**/
>
> but this is rather tedious, manipulating the buffer and byte data.
>
> I don't know any really easy way at the moment. How about writing raw
> bytes to a pipe or temp file, and using an external tool like 'nc' to
> actually transfer the data?
>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=3dunsubscribe
>
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to