Re: Struct and sockets.

2015-08-06 Thread Alexander Burger
Hi Manuel,

> I've readed in the documentation about the "native" function and it's
> mapping between the result and a description of the result in Picolisp. So
> we can receive a C style structure and have it as a list.

That's right.

> Can we do something similar when receiving binary data through a network
> socket?

Yes. Basically, all data communicated with C are binary. Depending on
how 'native' is called, they appear as PicoLisp data. So on the lowest
level you could simply deal with lists of bytes. It depends what kind of
data you expect, and what you want to do with them.

> I mean, is there a mechanism already done to do that? Or should I write my

The built-in network functions don't do what you want?

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Struct and sockets.

2015-08-06 Thread Manuel Cano
Hi all,

I've readed in the documentation about the "native" function and it's
mapping between the result and a description of the result in Picolisp. So
we can receive a C style structure and have it as a list.
Can we do something similar when receiving binary data through a network
socket?
I mean, is there a mechanism already done to do that? Or should I write my
own? (If I'm capable of that, of course, which I seriously doubt.)
May be there is an example or an application somewhere to look at.

Thanks


-- 
Manuel