enum lws_extension_callback_reasons reason,
void *user, void *in, size_t len)
{
+ (void)context;
+ (void)ext;
+ (void)wsi;
+ (void)reason;
+ (void)user;
+ (void)in;
+ (void)len;
+
return 0;
}
#endif
(void)context;
}
+LWS_VISIBLE void
+lws_cancel_service_pt(struct lws *wsi)
+{
+ (void)wsi;
+}
+
LWS_VISIBLE void lwsl_emit_syslog(int level, const char *line)
{
printf("%d: %s", level, line);
{
(void)wsi;
lws_libev_io(wsi, LWS_EV_START | LWS_EV_READ);
- context->fds[context->fds_count++].revents = 0;
+ context->pt[0].fds[context->pt[0].fds_count++].revents = 0;
}
extern "C" LWS_VISIBLE void
int idx = 0;
#endif
struct lws_context_per_thread *pt = &context->pt[tsi];
- lws_sockfd_type our_fd = 0;
+ lws_sockfd_type our_fd = 0, tmp_fd;
struct lws_tokens eff_buf;
unsigned int pending = 0;
struct lws *wsi, *wsi1;
while (wsi) {
/* we have to take copies, because he may be deleted */
wsi1 = wsi->timeout_list;
- m = wsi->sock;
+ tmp_fd = wsi->sock;
if (lws_service_timeout_check(wsi, (unsigned int)now)) {
/* he did time out... */
- if (m == our_fd)
+ if (tmp_fd == our_fd)
/* it was the guy we came to service! */
timed_out = 1;
/* he's gone, no need to mark as handled */