This shouldn't be a public function. You can put the declaration in `amqp_socket.h`