diff options
author | Mark L. Woodward <mlwmohawk@php.net> | 2001-12-22 02:10:43 +0000 |
---|---|---|
committer | Mark L. Woodward <mlwmohawk@php.net> | 2001-12-22 02:10:43 +0000 |
commit | f6c98834ea39ea189a02d5cff34800bcc0604505 (patch) | |
tree | 43420de01871e779b4320daa24f7dd5f6a99375d /ext/msession | |
parent | 1c057aaf67760f0e6a7f72a2781158c1e0a49ca9 (diff) | |
download | php-git-f6c98834ea39ea189a02d5cff34800bcc0604505.tar.gz |
Added msession_call
Diffstat (limited to 'ext/msession')
-rw-r--r-- | ext/msession/php_msession.h | 6 | ||||
-rw-r--r-- | ext/msession/reqclient.h | 36 |
2 files changed, 38 insertions, 4 deletions
diff --git a/ext/msession/php_msession.h b/ext/msession/php_msession.h index 470f80ad03..04736f07ee 100644 --- a/ext/msession/php_msession.h +++ b/ext/msession/php_msession.h @@ -1,8 +1,8 @@ /* +----------------------------------------------------------------------+ - | 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 | @@ -40,7 +40,6 @@ PHP_RINIT_FUNCTION(msession); 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); @@ -62,6 +61,7 @@ PHP_FUNCTION(msession_list); 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 diff --git a/ext/msession/reqclient.h b/ext/msession/reqclient.h index 5478970a00..e67c983dd7 100644 --- a/ext/msession/reqclient.h +++ b/ext/msession/reqclient.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | 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 | @@ -17,6 +17,19 @@ +----------------------------------------------------------------------+ */ +/* +-------------------------------------------------------------------------- + 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, @@ -41,10 +54,30 @@ enum REQ_TYPES 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 { @@ -86,6 +119,7 @@ REQB *StaticRequestBuffer(char *buffer, unsigned int cb); 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); |