#do you want to see the server conversation for exploring the protocol?
define('CITADEL_DEBUG_CITPROTO',0);
define('CITADEL_DEBUG_PROXY', FALSE);
+#switch this if you're using php5
+#define('SOCKET_PREFIX', "unix://");
+define('SOCKET_PREFIX', "");
+
?>
\ No newline at end of file
$sockname = "/tmp/" . $session . ".socket" ;
- $clientsocket = fsockopen($sockname, 0, $errno, $errstr, 5);
+ $clientsocket = fsockopen(SOCKET_PREFIX.$sockname, 0, $errno, $errstr, 5);
if (!$clientsocket) {
// It ain't there, dude. Open up the proxy. (C version)
//$cmd = "./sessionproxy " . $sockname ;
// We need to get a connection to the Citadel server going now.
-$ctdlsock = fsockopen(CITADEL_HOSTNAME, CITADEL_TCP_PORTNO, $errno, $errstr, 30);
+$ctdlsock = fsockopen(SOCKET_PREFIX.CITADEL_HOSTNAME, CITADEL_TCP_PORTNO, $errno, $errstr, 30);
if (!$ctdlsock) {
socket_close ($sock);
system("/bin/rm -f " . $sockname);