include/ff/d/zmqImpl.hpp
/*
     * Constructor. 
     *
     * It creates a Many-to-One descriptor, that is, instantiate a transport
     * layer using the first node as a router.
     *
     * \param name is the name of the descriptor
     * \param peers is the number of peers involved (sending nodes)
     * \param transport is the pointer to the transport layer object of class
     * zmqTransport
     * \param P is the flag that identifies whether the descriptor refers to a \p sender 
     * (i.e. a Router) or to a \p receiver.
     */
Constructor.
It creates a Many-to-One descriptor, that is, instantiate a transport
layer using the first node as a router.


Constructor . It creates a Many - to - One descriptor that is instantiate a transport layer using the first node as a router .
descriptorN_1(const std::string name, const int peers, zmqTransport* const  transport, const bool P ) :
            name(name), socket(NULL), transport(transport), P(P), peers(P?1:peers), recvHdr(true), transportIDs(peers) 
    {
        if (transport) socket = transport->newEndPoint(P);
        if (!P) {
            std::stringstream identity;
            for(int i = 0; i < peers; ++i) {
                identity.str("");
                identity << name << ":" << i;
                transportIDs[i] = identity.str();
            }
        }
    }
descriptorN_1 ( const std :: string name , const int peers , zmqTransport * const transport , const bool P ) : name ( name ) , socket ( NULL ) , transport ( transport ) , P ( P ) , peers ( P ? 1 : peers ) , recvHdr ( true ) , transportIDs ( peers ) { if ( transport ) socket = transport -> newEndPoint ( P ) ; if ( ! P ) { std :: stringstream identity ; for ( int i = 0 ; i < peers ; ++ i ) { identity . str ( " " ) ; identity << name << " " << i ; transportIDs [ i ] = identity . str ( ) ; } } }
Constructor.
Constructor .