-/* $Id: limit-connect.h,v 1.1 2006-03-30 10:35:15 adam Exp $
+/* $Id: limit-connect.h,v 1.2 2006-03-30 14:16:34 adam Exp $
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
#include <yaz/yconfig.h>
#include <yazproxy/bw.h>
-class LimitConnect {
+class YAZ_EXPORT LimitConnect {
public:
LimitConnect();
~LimitConnect();
-/* $Id: msg-thread.cpp,v 1.13 2006-03-30 13:29:23 adam Exp $
+/* $Id: msg-thread.cpp,v 1.14 2006-03-30 14:16:34 adam Exp $
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
#include <pthread.h>
#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <ctype.h>
#include <stdio.h>
using namespace yazpp_1;
-struct Msg_Thread::Private {
+class Msg_Thread::Private {
public:
int m_no_threads;
Msg_Thread_Queue m_input;
void Msg_Thread::socketNotify(int event)
{
-#if HAVE_POSIX_THREADS
+#if YAZ_POSIX_THREADS
if (event & SOCKET_OBSERVE_READ)
{
char buf[2];
-/* $Id: msg-thread.h,v 1.10 2006-03-30 13:29:23 adam Exp $
+/* $Id: msg-thread.h,v 1.11 2006-03-30 14:16:34 adam Exp $
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
02111-1307, USA.
*/
-#include <unistd.h>
-#include <ctype.h>
-
#include <yazpp/socket-observer.h>
#include <yaz/yconfig.h>
-class IMsg_Thread {
+class YAZ_EXPORT IMsg_Thread {
public:
virtual IMsg_Thread *handle() = 0;
virtual void result() = 0;
virtual ~IMsg_Thread();
};
-class Msg_Thread_Queue_List {
+class YAZ_EXPORT Msg_Thread_Queue_List {
friend class Msg_Thread_Queue;
private:
IMsg_Thread *m_item;
Msg_Thread_Queue_List *m_next;
};
-class Msg_Thread_Queue {
+class YAZ_EXPORT Msg_Thread_Queue {
public:
Msg_Thread_Queue();
void enqueue(IMsg_Thread *in);
Msg_Thread_Queue_List *m_list;
};
-class Msg_Thread : public yazpp_1::ISocketObserver {
+class YAZ_EXPORT Msg_Thread : public yazpp_1::ISocketObserver {
class Private;
public:
Msg_Thread(yazpp_1::ISocketObservable *obs, int no_threads);
-/* $Id: yaz-proxy.cpp,v 1.46 2006-03-30 11:59:34 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.47 2006-03-30 14:16:34 adam Exp $
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
#define strncasecmp _strnicmp
#endif
-#define USE_AUTH_MSG 1
+#undef USE_AUTH_MSG
+#define USE_AUTH_MSG 0
#if USE_AUTH_MSG
-class Auth_Msg : public IMsg_Thread {
+#error x
+class YAZ_EXPORT Auth_Msg : public IMsg_Thread {
public:
int m_ret;
IMsg_Thread *handle();
-# Copyright (C) 1993-2004, Index Data ApS
+# Copyright (C) 1993-2006, Index Data ApS
# All rights reserved.
-# $Id: makefile,v 1.4 2005-03-14 13:27:35 adam Exp $
+# $Id: makefile,v 1.5 2006-03-30 14:16:34 adam Exp $
###########################################################
############### Parameters
DEBUG=0 # 0 for release, 1 for debug
# YAZ and YAZ++
-YAZ_DIR=c:\yaz
-YAZPP_DIR=c:\yaz++
+YAZ_DIR=..\..\yaz
+YAZPP_DIR=..\..\yazpp
# iconv charcter conversion utility
HAVE_ICONV=1
# libxslt
HAVE_LIBXSLT=1
-LIBXSLT_DIR=c:\libxslt-1.1.12.win32
+LIBXSLT_DIR=c:\libxslt-1.1.14.win32
# libxml2 (used by libxslt)
HAVE_LIBXML2=1
-LIBXML2_DIR=c:\libxml2-2.6.15.win32
+LIBXML2_DIR=c:\libxml2-2.6.20.win32
# zlib compression (used by libxml2)
-ZLIB_DIR = c:\zlib-1.2.1.win32
+ZLIB_DIR = c:\zlib-1.2.3.win32
# get WIN32 binaries for libxslt, libxml, iconv, zlib from here:
# http://www.zlatkovic.com/libxml.en.html
iconv: $(BINDIR)\iconv.dll
$(BINDIR)\iconv.dll:
- copy "$(ICONV_DIR)\lib\iconv.dll" $(BINDIR)
+ copy "$(ICONV_DIR)\bin\iconv.dll" $(BINDIR)
!else
ICONV_DEF= \
/D HAVE_ICONV_H=0
"$(OBJDIR)\yaz-proxy.obj" \
"$(OBJDIR)\yaz-proxy-config.obj" \
"$(OBJDIR)\yaz-usemarcon.obj" \
+ "$(OBJDIR)\msg-thread.obj" \
+ "$(OBJDIR)\charset-converter.obj" \
+ "$(OBJDIR)\limit-connect.obj" \
+ "$(OBJDIR)\modules.obj" \
"$(OBJDIR)\yaz-bw.obj"
###########################################################