rabbitmq 从channal获得socket

Posted hshy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rabbitmq 从channal获得socket相关的知识,希望对你有一定的参考价值。

std::string queue_name = "hello100";
AmqpClient::Channel::ptr_t channel = AmqpClient::Channel::Create("10.10.22.105", 5672, "admin", "1234568888");
//创建channel
//AmqpClient::Channel::ptr_t channel = AmqpClient::Channel::Create("10.10.22.105", 5672, "admin", "1234568888");

sockClient = channel->GetSocketFD();

// closesocket(sockClient)

以上是关于rabbitmq 从channal获得socket的主要内容,如果未能解决你的问题,请参考以下文章

golang runtime源码阅读 channal实现

rabbitmq

go语言关于线程与通道channal

Rabbitmq之socket descriptors

springboot集成RabbitMQ,Eclipse开发集成RabbitMq,IDEA集成RabbitMQ报错 socket close

如何在windows下突破Rabbitmq的socket限制