Forum OpenACS Development: Re: Memcached TCL API

Collapse
3: Re: Memcached TCL API (response to 2)
Posted by Hossein Sharifi on
Thanks Vlad.

I tried using this, but there are undefined symbols: Ns_SockWriteV and Ns_SockWrite. And strangely enough, I can't find these functions defined even in the Naviserver source, so I doubt it's related to AOLServer. Are these helper functions that reside in another file/module?

nsmemcache.c:586: warning: implicit declaration of function `Ns_SockWriteV`
nsmemcache.c: In function `mc_get`:
nsmemcache.c:637: warning: implicit declaration of function `Ns_SockWrite`

Collapse
4: Re: Memcached TCL API (response to 3)
Posted by Hossein Sharifi on
Actually, I found those functions in the NaviServer CVS and imported them to AOLServer, but I still can't get the module to work. It hangs indefinitely on any call... I'll keep working on it though.
Collapse
6: Re: Memcached TCL API (response to 4)
Posted by Vlad Seryakov on
Right, i forgot, Naviserver's socket functions may differ in behavior from Aolserver's ones. You may copy them all from CVS sock.c into the module and see if it will work. Then decide what can be kept and what reused.