Lines Matching refs:asocket
31 static void local_socket_close_locked(asocket *s);
48 static asocket local_socket_list = {
57 static asocket local_socket_closing_list = {
62 asocket *find_local_socket(unsigned id) in find_local_socket()
64 asocket *s; in find_local_socket()
65 asocket *result = NULL; in find_local_socket()
80 insert_local_socket(asocket* s, asocket* list) in insert_local_socket()
89 void install_local_socket(asocket *s) in install_local_socket()
99 void remove_socket(asocket *s) in remove_socket()
114 asocket *s; in close_all_sockets()
130 static int local_socket_enqueue(asocket *s, apacket *p) in local_socket_enqueue()
183 static void local_socket_ready(asocket *s) in local_socket_ready()
191 static void local_socket_close(asocket *s) in local_socket_close()
199 static void local_socket_destroy(asocket *s) in local_socket_destroy()
227 static void local_socket_close_locked(asocket *s) in local_socket_close_locked()
265 asocket *s = _s; in local_socket_event_func()
393 asocket *create_local_socket(int fd) in create_local_socket()
395 asocket *s = calloc(1, sizeof(asocket)); in create_local_socket()
410 asocket *create_local_service_socket(const char *name) in create_local_service_socket()
412 asocket *s; in create_local_service_socket()
442 static asocket *create_host_service_socket(const char *name, const char* serial) in create_host_service_socket()
444 asocket *s; in create_host_service_socket()
461 asocket socket;
465 static int remote_socket_enqueue(asocket *s, apacket *p) in remote_socket_enqueue()
477 static void remote_socket_ready(asocket *s) in remote_socket_ready()
488 static void remote_socket_close(asocket *s) in remote_socket_close()
510 asocket* s = _s; in remote_socket_disconnect()
511 asocket* peer = s->peer; in remote_socket_disconnect()
522 asocket *create_remote_socket(unsigned id, atransport *t) in create_remote_socket()
524 asocket *s = calloc(1, sizeof(aremotesocket)); in create_remote_socket()
541 void connect_to_remote(asocket *s, const char *destination) in connect_to_remote()
562 static void local_socket_ready_notify(asocket *s) in local_socket_ready_notify()
573 static void local_socket_close_notify(asocket *s) in local_socket_close_notify()
655 static int smart_socket_enqueue(asocket *s, apacket *p) in smart_socket_enqueue()
731 asocket *s2; in smart_socket_enqueue()
828 static void smart_socket_ready(asocket *s) in smart_socket_ready()
833 static void smart_socket_close(asocket *s) in smart_socket_close()
847 asocket *create_smart_socket(void (*action_cb)(asocket *s, const char *act)) in create_smart_socket()
850 asocket *s = calloc(1, sizeof(asocket)); in create_smart_socket()
861 void smart_socket_action(asocket *s, const char *act) in smart_socket_action()
866 void connect_to_smartsocket(asocket *s) in connect_to_smartsocket()
869 asocket *ss = create_smart_socket(smart_socket_action); in connect_to_smartsocket()