X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fsocket-manager.h;h=f4e816250fbbfe02e8f3b54d990d63af2585817d;hb=509f0f1303d24df2dc6b26f36f17b55613c2bdb7;hp=b293965f54a6d4e857b2998187714aa49814dcf5;hpb=ceb226cb18d96a6b3aa2dd6cff94aa27850362cf;p=yazpp-moved-to-github.git diff --git a/include/yaz++/socket-manager.h b/include/yaz++/socket-manager.h index b293965..f4e8162 100644 --- a/include/yaz++/socket-manager.h +++ b/include/yaz++/socket-manager.h @@ -1,8 +1,8 @@ /* - * Copyright (c) 1998-2000, Index Data. + * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: socket-manager.h,v 1.1 2002-10-09 12:50:26 adam Exp $ + * $Id: socket-manager.h,v 1.3 2004-01-05 11:31:04 adam Exp $ */ #ifndef YAZ_SOCKET_MANAGER_INCLUDED @@ -21,8 +21,8 @@ class YAZ_EXPORT Yaz_SocketManager : public IYazSocketObservable { IYazSocketObserver *observer; int fd; unsigned mask; - unsigned timeout; - unsigned timeout_this; + int timeout; + int timeout_this; time_t last_activity; YazSocketEntry *next; }; @@ -53,9 +53,9 @@ class YAZ_EXPORT Yaz_SocketManager : public IYazSocketObservable { virtual void maskObserver(IYazSocketObserver *observer, int mask); /// Set timeout virtual void timeoutObserver(IYazSocketObserver *observer, - unsigned timeout); + int timeout); /// Process one event. return > 0 if event could be processed; - int Yaz_SocketManager::processEvent(); + int processEvent(); Yaz_SocketManager(); virtual ~Yaz_SocketManager(); };