Create typedefs for the callbacks in co_socket_t