View Single Post
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 12-28-2019 , 12:49   Re: Module: GoldSrc REST In Pawn (gRIP)
Reply With Quote #6

Quote:
Originally Posted by Inline View Post
Solutions implemented before, usually achieved only second requirement or just basically nothing. They used raw sockets and blocked the main thread for the IO.
To solve blocking problem requests were dispatched to another thread (See for SQL_ThreadQuery for example). This approach has several problems. One of them is the difficulty on concurrent and safe programming in C++. To speed up things, thread pool should be written. With bad dependency management... This is just a mess!

....

Rust has many libraries dedicated to high-performance HTTP(s) requests, implemented (at the lowest level) using non-blocking sockets. It is extremely easy to write something in Rust, which is otherwise nearly impossible in C++.
I am confused
There are two types of sockets, IIRC, Blocking and non-blocking.

If this module is using non-blocking sockets, how it different from many already existing non-blocking modules (for sockets) on this community ?
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline