#ifdef CURLDEBUG
-struct monitor {
- struct monitor *next; /* the next node in the list or NULL */
+struct socketmonitor {
+ struct socketmonitor *next; /* the next node in the list or NULL */
struct pollfd socket; /* socket info of what to monitor */
};
long ms; /* timeout, run the timeout function when reached */
bool msbump; /* set TRUE when timeout is set by callback */
int num_sockets; /* number of nodes in the monitor list */
- struct monitor *list; /* list of sockets to monitor */
+ struct socketmonitor *list; /* list of sockets to monitor */
int running_handles; /* store the returned number */
};
pointer */
{
struct events *ev = userp;
- struct monitor *m;
- struct monitor *prev=NULL;
+ struct socketmonitor *m;
+ struct socketmonitor *prev=NULL;
(void)socketp;
m = ev->list;
if(m->socket.fd == s) {
if(what == CURL_POLL_REMOVE) {
- struct monitor *nxt = m->next;
+ struct socketmonitor *nxt = m->next;
/* remove this node from the list of monitored sockets */
if(prev)
prev->next = nxt;
__func__, s); */
}
else {
- m = malloc(sizeof(struct monitor));
+ m = malloc(sizeof(struct socketmonitor));
m->next = ev->list;
m->socket.fd = s;
m->socket.events = socketcb2poll(what);
while(!done) {
CURLMsg *msg;
- struct monitor *m;
+ struct socketmonitor *m;
struct pollfd *f;
struct pollfd fds[4];
int numfds=0;