27.08.2010, 09:21
(
Последний раз редактировалось ev0lution; 27.08.2010 в 09:35.
)
The functions and callbacks provided confuse me.
If you listen on a port with socket_startlistening, will it accept any socket connections from any source, or only from other servers running this plugin and using socket_connect. Will it also call OnSocketConnect and OnSocketRecieve (which should be OnSocketReceive) as normal?
@Blacklite: I don't think you realised Micheliano quoted StrickenKid, he said that in the original post. (and I'm guessing you tested it with him)
EDIT: When trying to bind to the server port (7777) I got "Error: Function: start_listening is already listening. Error id: 2" upon calling the function, then "[Socket] Started listening on port 7777." after the gamemode had loaded. (I'm using it in a filterscript)
If you listen on a port with socket_startlistening, will it accept any socket connections from any source, or only from other servers running this plugin and using socket_connect. Will it also call OnSocketConnect and OnSocketRecieve (which should be OnSocketReceive) as normal?
@Blacklite: I don't think you realised Micheliano quoted StrickenKid, he said that in the original post. (and I'm guessing you tested it with him)
EDIT: When trying to bind to the server port (7777) I got "Error: Function: start_listening is already listening. Error id: 2" upon calling the function, then "[Socket] Started listening on port 7777." after the gamemode had loaded. (I'm using it in a filterscript)

