[INC] Sockets Forwards
Under construction
Sockets ForwardsThis include provides forwards for events related to sockets. These events eliminate the need to use a task or thinking entity in a plugin to constantly monitor for changes. The usage is pretty simple so I don't think much explanation is necessary beyond the examples below; the one thing I do recommend is always close a listening socket before map-change to prevent errors when a listen is again invoked (close socket at plugin_end()). If you use AMXX-Studio, you can play with the server example below with the sockets terminal (Tools->Sockets Terminal). Forwards
To avoid confusion and prevent unexpected behavior, I renamed all of the sockets2 functions in the sockets_forwards include. This is needed because the Open, Close, Listen and Accept commands are modified to make the forwards possible.
Example #1 - Simple TCP echo server. Connect and send data and it will echo'd in server console PHP Code:
PHP Code:
|
Re: [INC/MODULE] Sockets Forwards
Good Job =D
|
Re: [INC/MODULE] Sockets Forwards
Sounds sexy but too bad it's windows-only. :/
|
Re: [INC/MODULE] Sockets Forwards
sockets forwards is windows & unix, the other module I am working on is windows only. The main difference is this inc/module combo uses a thinking entity to monitor changes to trigger forwards and the windows-only module gets notified by the OS of changes so no looping/set_task/thinking-ent. The overall functionality is the same.
|
Re: [INC/MODULE] Sockets Forwards
Oh. It was confusing. Will compile for you.
|
Re: [INC/MODULE] Sockets Forwards
Everything is back up and running. As always, comments\recommendations\bug-reports are welcome.
|
Re: [INC/MODULE] Sockets Forwards
You should clean up your ZIP, you have included many useless directories.
|
Re: [INC/MODULE] Sockets Forwards
508K ? debug version ?
metamod is only 1.18M |
Re: [INC/MODULE] Sockets Forwards
1 Attachment(s)
Yes, probably the debug version, I get 56 ko with msvc2010 in release mode.
Jim, if you have time, can you try to compile for linux ? I have some difficulties to fix the code to be compatible linux. EDIT : Oh. Fixed all. Though it needs testing. |
Re: [INC/MODULE] Sockets Forwards
Re-uploaded fixed source zip and release version of dll. Thanks Arkshine.
|
All times are GMT -4. The time now is 01:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.