Formatting command string for sending over TCP socket
I'm trying to write a simple Redis client for publishing data to a Redis server. This is a project for me to learn Pawn/AMXX basics.
I come from a JavaScript background so things are a bit strange to me. I wrote the following function to format a command for RESP (Redis protocol) in about 2 minutes in JS: PHP Code:
PHP Code:
For those unfamiliar with JS or Redis, here is how the protocol works: http://redis.io/topics/protocol |
Re: Formatting command string for sending over TCP socket
I don't really understand. Are you trying to send CRLF or "\r\n" in text form?
It seems to be wrong in both JS and Pawn example. The control char in Pawn is ^, not \. |
| All times are GMT -4. The time now is 18:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.