AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   AMXX sockets (https://forums.alliedmods.net/showthread.php?t=61690)

amxnewbie 10-07-2007 10:30

AMXX sockets
 
I used SQLX for some db query and it is good. However for some security reason, I have to change to sockets. A separate php page will handle the db query.

SQLX is preferred because of the ThreadQuery. If I use socket, is there any way similar to SQLX, asynchronously receive and process the data?

Currently I can only find a way that uses a loop of socket_change. There is possible data loss if the buffer is overwritten, right? Do we have anyway to use socket in the same way as SQLX ThreadQuery?

Thanks.

amxnewbie 10-07-2007 15:18

Re: AMXX sockets
 
Any good idea on this? Thanks.

BDJoe 01-25-2009 07:35

Re: AMXX sockets
 
Hello there! I have similar problem. Need to change the socket path. Can some1 explain me why it search in /tmp/mysql.sock? And is it possible this path to be registered as cvar somewhere? Thanks!

YamiKaitou 01-25-2009 19:13

Re: AMXX sockets
 
Quote:

Originally Posted by BDJoe (Post 749778)
Hello there! I have similar problem. Need to change the socket path. Can some1 explain me why it search in /tmp/mysql.sock? And is it possible this path to be registered as cvar somewhere? Thanks!

Use 127.0.0.1 or create a symlink for it


All times are GMT -4. The time now is 16:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.