View Single Post
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 09-15-2015 , 09:09   Re: Module: Threaded Sockets
Reply With Quote #29

Shooting King,
Could you please make your API more useful?
I mean that for example we are sending multiply socket queries in one time, how can i understand in callback which one is answering of them? There is no way in plugin to add custom information in callback (for example, playerID for which im sending socket query) and in ur examples u are using single global variable for that purpose which is highly unappreciated.
In AMX there is set_task function that allows us to send custom information in callback, could you upgrade your module and API to something similar? Or may be u can use Destro API, it is also not bad.

BTW:
Quote:
suggestions:
- Add the "iThreadHandle" param on callbacks or a array to pass custom data (if you do this, you could remove "iThreadState" and not implement "iThreadHandle")
__________________

Last edited by draft; 09-15-2015 at 09:10.
draft is offline