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

Quote:
Originally Posted by Shinta307
Посмотреть сообщение
Can you help me?

[02:49:51] Loading plugin: socket.so
[02:49:51] Failed (libcrypto.so.0.9.8: cannot open shared object file: No such file or directory)

Running on CentOS linux..
What major version of CentOS are you using? 5, 6 or 7?
Do the following
Код:
yum whatprovides */libcrypto.so.0.9.8*
And post the output.
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
What major version of CentOS are you using? 5, 6 or 7?
Do the following
Код:
yum whatprovides */libcrypto.so.0.9.8*
And post the output.
i'm using CenOS 6, where is the result of the download libcrypto.so.0.9.8?
Reply

Quote:
Originally Posted by Shinta307
Посмотреть сообщение
i'm using CenOS 6, where is the result of the download libcrypto.so.0.9.8?
Can you post the output of the command?
Reply

yum whatprovides */libcrypto.so.0.9.8
Loaded plugins: fastestmirror, priorities, replace
Loading mirror speeds from cached hostfile
* atomic: mirrors.thzhost.com
* base: centos.usonyx.net
* epel: mirror.smartmedia.net.id
* extras: centos.usonyx.net
* rpmforge: mirror.oscc.org.my
* updates: centos.usonyx.net
* webtatic: uk.repo.webtatic.com
526 packages excluded due to repository priority protections
Softaculous/filelists_db | 7.1 kB 00:00
http://mirrors.thzhost.com/atomic/ce...ts.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
atomic/filelists_db | 951 kB 00:00
base/filelists_db | 5.2 MB 00:00
epel/filelists_db | 7.2 MB 00:06
epel-httpd24/filelists_db | 586 B 00:00
extras/filelists_db | 35 kB 00:00
mysql-connectors-community/filelists_db | 4.1 kB 00:00
mysql-tools-community/filelists_db | 9.8 kB 00:00
mysql56-community/filelists_db | 319 kB 00:00
rpmforge/filelists_db | 2.3 MB 00:00
updates/filelists_db | 2.1 MB 00:00
webtatic/filelists_db | 115 kB 00:00
dropbox-1.1.27-2.el6.rf.i686 : Sync and backup files between computers
Repo : rpmforge
Matched from:
Filename : /usr/libexec/dropbox/libcrypto.so.0.9.8

This ?
Reply

Quote:
Originally Posted by Shinta307
Посмотреть сообщение
yum whatprovides */libcrypto.so.0.9.8
Loaded plugins: fastestmirror, priorities, replace
Loading mirror speeds from cached hostfile
* atomic: mirrors.thzhost.com
* base: centos.usonyx.net
* epel: mirror.smartmedia.net.id
* extras: centos.usonyx.net
* rpmforge: mirror.oscc.org.my
* updates: centos.usonyx.net
* webtatic: uk.repo.webtatic.com
526 packages excluded due to repository priority protections
Softaculous/filelists_db | 7.1 kB 00:00
http://mirrors.thzhost.com/atomic/ce...ts.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
atomic/filelists_db | 951 kB 00:00
base/filelists_db | 5.2 MB 00:00
epel/filelists_db | 7.2 MB 00:06
epel-httpd24/filelists_db | 586 B 00:00
extras/filelists_db | 35 kB 00:00
mysql-connectors-community/filelists_db | 4.1 kB 00:00
mysql-tools-community/filelists_db | 9.8 kB 00:00
mysql56-community/filelists_db | 319 kB 00:00
rpmforge/filelists_db | 2.3 MB 00:00
updates/filelists_db | 2.1 MB 00:00
webtatic/filelists_db | 115 kB 00:00
dropbox-1.1.27-2.el6.rf.i686 : Sync and backup files between computers
Repo : rpmforge
Matched from:
Filename : /usr/libexec/dropbox/libcrypto.so.0.9.8

This ?
Yes, and is that all? Is there more?
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Yes, and is that all? Is there more?
Yes, no more , same problem help me please..
Reply

Quote:
Originally Posted by Shinta307
Посмотреть сообщение
Yes, no more , same problem help me please..
Strange, it should have returned more available packages.
What is the output of the following commands? I'd like to know if the 'base' repository has been disabled.
Код:
nano /etc/yum.repos.d/CentOS-Base.repo
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Strange, it should have returned more available packages.
What is the output of the following commands? I'd like to know if the 'base' repository has been disabled.
Код:
nano /etc/yum.repos.d/CentOS-Base.repo
There is output

Код:
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep$
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep$
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep$
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Reply

Hello, my Windows locale is Lithuanian (server compiled on Lithuanian locale too), when I send commands (with Lithuanian symbols) from server to client (socket_sendto_remote_client), client recieves Latin symbols (not Lithuanian), where problem? Client can't read correctly or plugin can't send UTF-8?
EDIT: Problem was in program. Plugin transfer UTF-8.
Reply

Quote:
Originally Posted by Johurt
Посмотреть сообщение
Hello, my Windows locale is Lithuanian (server compiled on Lithuanian locale too), when I send commands (with Lithuanian symbols) from server to client (socket_sendto_remote_client), client recieves Latin symbols (not Lithuanian), where problem? Client can't read correctly or plugin can't send UTF-8?
Clarification:
Client is not samp-server. Client - the remote program with socket.
Reply

Fucking awesome plugin, but I'm stuck with a error. The last version (0.2b) is not loading:

PHP код:
[17:40:15]  Loading pluginsocket
[17:40:15]   Failed
But the 0.1b version loads well. Can someone send me a well-compiled dll mirror? Or help me with this one? Thanks :P
Reply

My server crash after use socket_send

http://pastebin.com/MwJEe1mr

Output
[11:04:13] Number of vehicle models: 173
[11:04:28] Incoming connection from [0:164.126.247.1]

Server crash after socket_send
Reply

How to send info from php file? because i'am appealing to php file loading from database some info and i need that information send to server it's possible using this plugin and how?
Reply

Quote:
Originally Posted by CSCripMa
Посмотреть сообщение
How to send info from php file? because i'am appealing to php file loading from database some info and i need that information send to server it's possible using this plugin and how?
So you are getting info from a .php file, and that .php file gets the info from a database?
Which database are you using? If you are using MySQL you can just use BlueG's MySQL plugin.
Reply

Just i'am using post and get methods get information that is not important at all, just i'am for example loading player xp and money (in php file) and need send it to my sa-mp server all data received from php.

Imagine i have website and user click button then i call to php file adding name of that user and i want to send to my sa-mp server data that in public i could get it for ex:

Код:
public ReceiveDataFromPhp( data[] )
{
    printf("This user: %s clicked button in your website!",  data[ username ] );
}
I do something in php file

Код:
<?php
$username = $_GET["name"];

And in some way send $username as data parameter

?>
Reply

First, server is the softwer that waits for connection's . So when someone say server it is the one that listens on some port. Client is anyone that connects to that port. If you understood these, than you understand that samp server can actually be a client.

@CSCripMa what you need to do is create TCP socket server inside samp server. (see example on first page) and then when you want to push some data from php to samp server, you connect with php and send that info.
Take a look at http://www.codeproject.com/Tips/4188...ramming-in-PHP -> Scroll down to CLIENT (client.php)
Reply

socket_listen(): Socket has failed to bind on port 1242.
Reply

That means that the port is in use.
Reply

Is it secure to communate between sqlite database from sa-mp server to webserver.
I want to create UCP that support sqlite.
Reply

Finally working!!!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)