Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: has anyone worked on code for sockets?


I'm actually using Unix sockets, so dial is literally PERFECT.

As a side note: what's the most idiomatic way of converting a pointer
to a byte slice? I'm trying to transfer a union over a Unix socket,
and right now I'm doing:


type X = union
    `Y
;;

/* ... */
var x = `Y
var bytes = (&x[:]) : (byte[:])

but it's not working:

src/common.myr:40: type union
`Shutdown
;; does not support member operators near <message#>.len


On Sun, Jul 30, 2017 at 7:48 PM, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:
> Depending on what you're donig, there's also libhttp -- it's not quite at
> the point where I'm ready to land it, and it doesn't yet support https. But
> it might be something to bang on:
>
>         http://git.eigenstate.org/ori/libhttp.git
>
> If not, it might still be a useful example.
>
>
> On Sun, 30 Jul 2017 19:19:03 -0500, Ryan Gonzalez <rymg19@xxxxxxxxx> wrote:
>
>> Thanks! I somehow missed those while searching...
>>
>> On Sat, Jul 29, 2017 at 4:05 PM, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:
>> > On Sat, 29 Jul 2017 13:46:56 -0700, "rymg19@xxxxxxxxx" <rymg19@xxxxxxxxx> wrote:
>> >
>> >> I remember looking a while back but several syscalls were missing...
>> >
>> > Most networking should be working with `std.dial("proto!host!port"), but
>> > if that's not enough, I think that the syscall API should be there.
>> >
>> > If there's something missing, just ask: I should be able to add missing
>> > bits fairly easily.
>> >
>> > I think the biggest omission is something to handle poll/epoll/kqueue,
>> > and that hostname lookups default to ipv4.
>> >
>> > --
>> >     Ori Bernstein
>>
>>
>>
>> --
>> Ryan (ライアン)
>> Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
>> http://refi64.com/
>>
>
>
> --
>     Ori Bernstein



-- 
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
http://refi64.com/

Follow-Ups:
Re: Question: has anyone worked on code for sockets?Ori Bernstein <ori@xxxxxxxxxxxxxx>
References:
Question: has anyone worked on code for sockets?"rymg19@xxxxxxxxx" <rymg19@xxxxxxxxx>
Re: Question: has anyone worked on code for sockets?Ori Bernstein <ori@xxxxxxxxxxxxxx>
Re: Question: has anyone worked on code for sockets?Ryan Gonzalez <rymg19@xxxxxxxxx>
Re: Question: has anyone worked on code for sockets?Ori Bernstein <ori@xxxxxxxxxxxxxx>