Lines Matching refs:asocket
45 static asocket local_socket_list = {
53 static asocket local_socket_closing_list = {
60 asocket* find_local_socket(unsigned local_id, unsigned peer_id) { in find_local_socket()
61 asocket* s; in find_local_socket()
62 asocket* result = NULL; in find_local_socket()
78 static void insert_local_socket(asocket* s, asocket* list) { in insert_local_socket()
85 void install_local_socket(asocket* s) { in install_local_socket()
98 void remove_socket(asocket* s) { in remove_socket()
110 asocket* s; in close_all_sockets()
125 static int local_socket_enqueue(asocket* s, apacket* p) { in local_socket_enqueue()
179 static void local_socket_ready(asocket* s) { in local_socket_ready()
186 static void local_socket_destroy(asocket* s) { in local_socket_destroy()
212 static void local_socket_close(asocket* s) { in local_socket_close()
251 asocket* s = reinterpret_cast<asocket*>(_s); in local_socket_event_func()
385 asocket* create_local_socket(int fd) { in create_local_socket()
386 asocket* s = reinterpret_cast<asocket*>(calloc(1, sizeof(asocket))); in create_local_socket()
402 asocket* create_local_service_socket(const char* name, const atransport* transport) { in create_local_service_socket()
416 asocket* s = create_local_socket(fd); in create_local_service_socket()
438 static asocket* create_host_service_socket(const char* name, const char* serial) { in create_host_service_socket()
439 asocket* s; in create_host_service_socket()
452 static int remote_socket_enqueue(asocket* s, apacket* p) { in remote_socket_enqueue()
462 static void remote_socket_ready(asocket* s) { in remote_socket_ready()
471 static void remote_socket_shutdown(asocket* s) { in remote_socket_shutdown()
483 static void remote_socket_close(asocket* s) { in remote_socket_close()
499 asocket* create_remote_socket(unsigned id, atransport* t) { in create_remote_socket()
503 asocket* s = reinterpret_cast<asocket*>(calloc(1, sizeof(asocket))); in create_remote_socket()
519 void connect_to_remote(asocket* s, const char* destination) { in connect_to_remote()
538 static void local_socket_ready_notify(asocket* s) { in local_socket_ready_notify()
549 static void local_socket_close_notify(asocket* s) { in local_socket_close_notify()
650 static int smart_socket_enqueue(asocket* s, apacket* p) { in smart_socket_enqueue()
726 asocket* s2; in smart_socket_enqueue()
822 static void smart_socket_ready(asocket* s) { in smart_socket_ready()
826 static void smart_socket_close(asocket* s) { in smart_socket_close()
839 static asocket* create_smart_socket(void) { in create_smart_socket()
841 asocket* s = reinterpret_cast<asocket*>(calloc(1, sizeof(asocket))); in create_smart_socket()
852 void connect_to_smartsocket(asocket* s) { in connect_to_smartsocket()
854 asocket* ss = create_smart_socket(); in connect_to_smartsocket()
860 size_t asocket::get_max_payload() const { in get_max_payload()