Lines Matching refs:fde
167 fdevent_add(s->fde, FDE_WRITE); in local_socket_flush_incoming()
170 fdevent_del(s->fde, FDE_WRITE); in local_socket_flush_incoming()
234 fdevent_del(s->fde, FDE_READ); in local_socket_flush_outgoing()
238 fdevent_del(s->fde, FDE_READ); in local_socket_flush_outgoing()
273 fdevent_add(s->fde, FDE_READ); in local_socket_ready()
291 auto callback = [](fdevent* fde, unsigned event, void* arg) { in deferred_close() argument
296 while ((rc = adb_read(fde->fd.get(), buf, sizeof(buf))) > 0) { in deferred_close()
314 fdevent_destroy(fde); in deferred_close()
322 fdevent* fde = fdevent_create(fd.release(), callback, socket_info); in deferred_close() local
323 fdevent_add(fde, FDE_READ); in deferred_close()
324 fdevent_set_timeout(fde, 1s); in deferred_close()
333 deferred_close(fdevent_release(s->fde)); in local_socket_destroy()
375 fdevent_del(s->fde, FDE_READ); in local_socket_close()
379 CHECK_EQ(FDE_WRITE, s->fde->state & FDE_WRITE); in local_socket_close()
454 s->fde = fdevent_create(fd, local_socket_event_func, s); in create_local_socket()