free(tcp);
}
-static void
+static bool
tcp_prepoll(struct vconn *vconn, int want, struct pollfd *pfd)
{
struct tcp_vconn *tcp = tcp_vconn_cast(vconn);
if (want & WANT_SEND || tcp->txbuf) {
pfd->events |= POLLOUT;
}
+ return false;
}
static void
free(ptcp);
}
-static void
+static bool
ptcp_prepoll(struct vconn *vconn, int want, struct pollfd *pfd)
{
struct ptcp_vconn *ptcp = ptcp_vconn_cast(vconn);
if (want & WANT_ACCEPT) {
pfd->events |= POLLIN;
}
+ return false;
}
static int