/*
- * 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
IYazSocketObserver *observer;
int fd;
unsigned mask;
- unsigned timeout;
- unsigned timeout_this;
+ int timeout;
+ int timeout_this;
time_t last_activity;
YazSocketEntry *next;
};
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();
};