Another way of doing multi-threading - HTTP
#7

Quote:
Originally Posted by S4t3K
View Post
The idea of the database is a good one, I think I'll switch on it soon.

But it's not the point of the thread. Though, atm I can't think of a PAWN task big enough to be threaded...
I can think of a few, but this is not multi threading. What you are doing is simply calling a webservice. Is it a good idea? Webservices are a good idea, but they're normally used for other stuff, but in theory this is not wrong, it works, it doesn't lock the samp server, so it's a 'good' idea.

For example, webservices are often used to authenticate a user or get data from a database, this way you only have to implement the logic for it once, and you can call it from any interface that allows you to send HTTP(S) requests.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)