[Plugin] Socket plugin (v0.2b released)
#81

Quote:
Originally Posted by zgintasz
Посмотреть сообщение
Amazing work, you should continue working on it if you have some time. It's probably one of the best sa-mp plugin. Thanks.
I agree, people can make crazy contraptions with this plugin.
Reply
#82

Hey, will there be a big load on server if TCP socket server would receive ~100 sent data from every player every second? For example there is 50 players and everyone sends a data every 10ms, so server would receive data 5000 times every second.
Reply
#83

is it bug or something wrong? I start TCP socket server with nobody connected and I get strange IP adresses! From where did they come from if nobody is connected to my socket server? Shouldn't it be NO_IP_RETURN(0.0.0.0)? socket_remote_client_connected returns that client isn't connected, so I don't understand where are these IPs from.
Quote:

[20:37:24] ip: 116.32.53.53
[20:37:24] ip: 184.248.24.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0
[20:37:24] ip: 65.27.71.0

here is the source code:
Код:
	csp_socket_server = socket_create(TCP);
	if(is_socket_valid(csp_socket_server))
	{
		socket_set_max_connections(csp_socket_server, MAX_CONNECTIONS);
		socket_listen(csp_socket_server, 5568);
		new ip[16];
		for(new i; i < MAX_CONNECTIONS; i++)
		{
			get_remote_client_ip(csp_socket_server, i, ip);
			printf("ip: %s", ip);
		}
		return true;
	}
	else return false;
Reply
#84

Bump, we still waiting for new version
Reply
#85

links doesnt work..
Reply
#86

I can provide link to .dll and source code
Reply
#87

Quote:
Originally Posted by BJIADOKC
Посмотреть сообщение
I can provide link to .dll and source code
so what are you waiting for?
Reply
#88

Quote:
Originally Posted by Yiin
View Post
so what are you waiting for?
He bent.

By the way, the links do work.
Reply
#89

Nice work. I use
Reply
#90

Quote:
Originally Posted by Stewie`
Посмотреть сообщение
You do realise you can do it on your own.
Yes I know.

But this should be something we all benefit from, so maybe he should make this a ******code just like the MySQL so people can contribute.
Reply
#91

Yes, some sort of serialization would be nice.
Reply
#92

its nice!!
Reply
#93

Can someone pls reupload it
that would be great
Reply
#94

needs re-upload
Reply
#95

Can someone please reupload this genius plugin?
I really need it urgent.....
Reply
#96

Quote:
Originally Posted by svenron
Посмотреть сообщение
Can someone please reupload this genius plugin?
I really need it urgent.....
I will upload a quick mirror, but it is not complete.
Reply
#97

This plugin was created almost one year ago, and still without SSL support
Reply
#98

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
This plugin was created almost one year ago, and still without SSL support
The SSL Support is under construction for 2 months.
Reply
#99

Jeroen do you have the .so file?

pls say yes X=)
Reply

This is a mirror because the official download is down.
This may not be up to date and does not contain everything.

This contains the include, the dll and so.
https://sona-gaming.com/owncloud/pub...4cdd454a82264c
This is NOT official!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)