示例#1
0
         StatusServer( zmq::context_t& ctx, const std::string& ipAddr, PcModelPtr pcModel ) : pcModel_(pcModel) 
         {
            socket_ = SocketPtr( new zmq::socket_t(ctx, ZMQ_PUB));
				//socket_->setsockopt( ZMQ_HWM, &gnuradar::constants::HWM, sizeof(gnuradar::constants::HWM));
            socket_->bind (ipAddr.c_str());
				std::cout << "STATUS ADDRESS : " << ipAddr << std::endl;
         }
示例#2
0
 ///////////////////////////////////////////////////////////////////////
 // CTOR
 ///////////////////////////////////////////////////////////////////////
 RequestServer( zmq::context_t& ctx, std::string& ipaddr)
 {
    socket_ = SocketPtr( new zmq::socket_t(ctx, ZMQ_REP));
    socket_->bind (ipaddr.c_str());
 }