Thread overview
Re: Using Vibe.d for not HTTP
May 25, 2020
Daniel Kozak
May 25, 2020
Russel Winder
May 25, 2020
Panke
May 25, 2020
Russel Winder
May 25, 2020
On Sun, May 24, 2020 at 10:10 AM Russel Winder via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
>
> Hi,
>
> Clearly Vibe.d is mostly for people doing HTTP and HTTPS stuff. Yet it claims to be able to support TCP and UDP working with other protocols. However, all the serious examples are HTTP/HTTPS related. All the TCP and UDP examples are basically trivial and thus useless to me for learning.
>
> I am hoping I have just missed the page/example that does something more than just echo for a TCP server. If I haven't, is ther an example somewhere people know of that I can look at?


https://run.dlang.io/is/SMLuA2
May 25, 2020
On Mon, 2020-05-25 at 11:55 +0200, Daniel Kozak via Digitalmars-d-learn wrote: […]
> 
> https://run.dlang.io/is/SMLuA2

Thanks for this pointer. It was very helpful to read it as it confirmed that I was going doing the right thing in my code. That you have two sources adding some interleaving is most interesting and very informative, useful to read.

Now I need to find out how to spawn a task that can send out data even when the connection handler is blocked awaiting something to read.

I also need to find out why I am now getting a SIGSEGV I wasn't getting before when no changes seem to have occured in the code. lldb is not really that useful, just as gdb wasn't. :-(

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk



May 25, 2020
On Monday, 25 May 2020 at 12:04:12 UTC, Russel Winder wrote:
>
> Now I need to find out how to spawn a task that can send out data even when the connection handler is blocked awaiting something to read.
>
https://vibed.org/api/vibe.core.core/runTask ?


May 25, 2020
On Mon, 2020-05-25 at 12:29 +0000, Panke via Digitalmars-d-learn wrote:
> 
[…]
> https://vibed.org/api/vibe.core.core/runTask ?
> 

Possibly, it is just that the documentation is sadly lacking in examples of use.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk