}
static void
-onUpkeepTimer (int foo UNUSED, short bar UNUSED, void * vannouncer);
+onUpkeepTimer (evutil_socket_t foo UNUSED, short bar UNUSED, void * vannouncer);
void
tr_announcerInit (tr_session * session)
}
static void
-onUpkeepTimer (int foo UNUSED, short bar UNUSED, void * vannouncer)
+onUpkeepTimer (evutil_socket_t foo UNUSED, short bar UNUSED, void * vannouncer)
{
tr_announcer * announcer = vannouncer;
tr_session * session = announcer->session;
**/
static void
-handshakeTimeout (int foo UNUSED, short bar UNUSED, void * handshake)
+handshakeTimeout (evutil_socket_t foo UNUSED, short bar UNUSED, void * handshake)
{
tr_handshakeAbort (handshake);
}
}
static void
-event_read_cb (int fd, short event UNUSED, void * vio)
+event_read_cb (evutil_socket_t fd, short event UNUSED, void * vio)
{
int res;
int e;
}
static void
-event_write_cb (int fd, short event UNUSED, void * vio)
+event_write_cb (evutil_socket_t fd, short event UNUSED, void * vio)
{
int res = 0;
int e;
/* cancel requests that are too old */
static void
-refillUpkeep (int foo UNUSED, short bar UNUSED, void * vmgr)
+refillUpkeep (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmgr)
{
time_t now;
time_t too_old;
return count;
}
-static void atomPulse (int, short, void *);
-static void bandwidthPulse (int, short, void *);
-static void rechokePulse (int, short, void *);
-static void reconnectPulse (int, short, void *);
+static void atomPulse (evutil_socket_t, short, void *);
+static void bandwidthPulse (evutil_socket_t, short, void *);
+static void rechokePulse (evutil_socket_t, short, void *);
+static void reconnectPulse (evutil_socket_t, short, void *);
static struct event *
-createTimer (tr_session * session, int msec, void (*callback)(int, short, void *), void * cbdata)
+createTimer (tr_session * session, int msec, event_callback_fn callback, void * cbdata)
{
struct event * timer = evtimer_new (session->event_base, callback, cbdata);
tr_timerAddMsec (timer, msec);
}
static void
-rechokePulse (int foo UNUSED, short bar UNUSED, void * vmgr)
+rechokePulse (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmgr)
{
tr_torrent * tor = NULL;
tr_peerMgr * mgr = vmgr;
static void makeNewPeerConnections (tr_peerMgr * mgr, const int max);
static void
-reconnectPulse (int foo UNUSED, short bar UNUSED, void * vmgr)
+reconnectPulse (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmgr)
{
tr_torrent * tor;
tr_peerMgr * mgr = vmgr;
}
static void
-bandwidthPulse (int foo UNUSED, short bar UNUSED, void * vmgr)
+bandwidthPulse (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmgr)
{
tr_torrent * tor;
tr_peerMgr * mgr = vmgr;
}
static void
-atomPulse (int foo UNUSED, short bar UNUSED, void * vmgr)
+atomPulse (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmgr)
{
tr_torrent * tor = NULL;
tr_peerMgr * mgr = vmgr;
}
static void
-pexPulse (int foo UNUSED, short bar UNUSED, void * vmsgs)
+pexPulse (evutil_socket_t foo UNUSED, short bar UNUSED, void * vmsgs)
{
struct tr_peerMsgs * msgs = vmsgs;
}
static void
-onTimer (int fd UNUSED, short what UNUSED, void * vshared)
+onTimer (evutil_socket_t fd UNUSED, short what UNUSED, void * vshared)
{
tr_shared * s = vshared;
}
static void
-accept_incoming_peer (int fd, short what UNUSED, void * vsession)
+accept_incoming_peer (evutil_socket_t fd, short what UNUSED, void * vsession)
{
int clientSocket;
tr_port clientPort;
* in the case of a crash, unclean shutdown, clumsy user, etc.
*/
static void
-onSaveTimer (int foo UNUSED, short bar UNUSED, void * vsession)
+onSaveTimer (evutil_socket_t foo UNUSED, short bar UNUSED, void * vsession)
{
tr_torrent * tor = NULL;
tr_session * session = vsession;
static void turtleCheckClock (tr_session * s, struct tr_turtle_info * t);
static void
-onNowTimer (int foo UNUSED, short bar UNUSED, void * vsession)
+onNowTimer (evutil_socket_t foo UNUSED, short bar UNUSED, void * vsession)
{
int usec;
const int min = 100;
static unsigned char myid[20];
static tr_session *session = NULL;
-static void timer_callback (int s, short type, void *ignore);
+static void timer_callback (evutil_socket_t s, short type, void *ignore);
struct bootstrap_closure {
tr_session *session;
}
static void
-timer_callback (int s UNUSED, short type UNUSED, void *session)
+timer_callback (evutil_socket_t s UNUSED, short type UNUSED, void *session)
{
tr_dhtCallback (NULL, 0, NULL, 0, session);
}
* $Id$
*/
-static void event_callback (int, short, void*);
+static void event_callback (evutil_socket_t, short, void*);
enum {
UPKEEP_INTERVAL_SECS = 5
/**
* @} */
-static void on_upkeep_timer (int, short, void *);
+static void on_upkeep_timer (evutil_socket_t, short, void *);
/**
* @brief Initializes Local Peer Discovery for this node
}
static void
-on_upkeep_timer (int foo UNUSED, short bar UNUSED, void * vsession UNUSED)
+on_upkeep_timer (evutil_socket_t foo UNUSED, short bar UNUSED, void * vsession UNUSED)
{
const time_t now = tr_time ();
tr_lpdAnnounceMore (now, UPKEEP_INTERVAL_SECS);
* @brief Processing of timeout notifications and incoming data on the socket
* @note maximum rate of read events is limited according to @a lpd_maxAnnounceCap
* @see DoS */
-static void event_callback (int s UNUSED, short type, void* ignore UNUSED)
+static void event_callback (evutil_socket_t s UNUSED, short type, void* ignore UNUSED)
{
assert (tr_isSession (session));
}
static void
-event_callback (int s, short type UNUSED, void *sv)
+event_callback (evutil_socket_t s, short type UNUSED, void *sv)
{
int rc;
socklen_t fromlen;
} while (0)
static void
-readFromPipe (int fd,
- short eventType,
- void * veh)
+readFromPipe (evutil_socket_t fd,
+ short eventType,
+ void * veh)
{
char ch;
int ret;