/*
+----------------------------------------------------------------------+
- | PHP Version 4 |
+ | PHP version 4.x |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2002 The PHP Group |
+ | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
PHP_RSHUTDOWN_FUNCTION(msession);
PHP_MINFO_FUNCTION(msession);
-PHP_FUNCTION(confirm_msession_compiled); /* For testing, remove later. */
PHP_FUNCTION(msession_connect);
PHP_FUNCTION(msession_disconnect);
PHP_FUNCTION(msession_lock);
PHP_FUNCTION(msession_uniq);
PHP_FUNCTION(msession_randstr);
PHP_FUNCTION(msession_plugin);
+PHP_FUNCTION(msession_call);
/*
Declare any global variables you may need between the BEGIN
+----------------------------------------------------------------------+
| msession 1.0 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2002 The PHP Group |
+ | Copyright (c) 1997-2001 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+----------------------------------------------------------------------+
*/
+/*
+--------------------------------------------------------------------------
+ These are definitions are pulled from Phoenix.
+ It would probably be easier to maintain one file,
+ but some phoenix header files conflict with other
+ project header files common to PHP. Besides, this
+ allows this header to be PHP license and Phoenix to
+ be LGPL with no conflicts.
+
+ MAKE NO CHANGES TO THIS FILE IT. MUST REMAIN CONSTANT
+ WITH PHOENIX OR IT WILL NOT WORK.
+--------------------------------------------------------------------------
+*/
enum REQ_TYPES
{
REQ_ERR,
REQ_UNIQ,
REQ_RANDSTR,
REQ_PLUGIN,
+ REQ_CALL,
REQ_LAST,
REQ_POPEN=1024,
REQ_PCLOSE
};
+enum REQ_ERRORS
+{
+ REQE_NOERROR=0,
+ REQE_NOSESSION,
+ REQE_DUPSESSION,
+ REQE_NOWLOCK,
+ REQE_NOVALUE,
+ REQE_LOCKED,
+ REQE_NOSEND,
+ REQE_NOCONNECT,
+ REQE_BADCONN,
+ REQE_BADHDR,
+ REQE_BADVER,
+ REQE_BADLEN,
+ REQE_BUFFER,
+ REQE_DENIED,
+ REQE_NOFN,
+ REQE_UNKNOWN
+};
typedef struct _requestPacket
{
int FormatRequest(REQB **buffer, int stat, const char *session, const char *name, const char *value, int param);
int FormatRequestMulti(REQB **buffer, int stat, char *session, int n, char **pairs, int param);
+int FormatRequestStrings(REQB **ppreq, int stat, char *session, int n, char **strings);
int DoSingleRequest(char *hostname, int port, REQB **preq);
void *OpenReqConn(char *hostname, int port);
void CloseReqConn(void *conn);