using NetMQ.Core;
namespace NetMQ.Sockets
{
///
/// A DealerSocket is a NetMQSocket, whereby the dealer sends messages in a way intended to achieve load-balancing
/// - which are received in a fair queueing manner.
///
public class DealerSocket : NetMQSocket
{
///
/// Create a new DealerSocket and attach socket to zero or more endpoints.
///
/// List of NetMQ endpoints, separated by commas and prefixed by '@' (to bind the socket) or '>' (to connect the socket).
/// Default action is connect (if endpoint doesn't start with '@' or '>')
/// var socket = new DealerSocket(">tcp://127.0.0.1:5555,@tcp://127.0.0.1:55556");
public DealerSocket(string? connectionString = null) : base(ZmqSocketType.Dealer, connectionString, DefaultAction.Connect)
{
}
///
/// Create a new DealerSocket based upon the given SocketBase.
///
/// the SocketBase to create the new socket from
internal DealerSocket(SocketBase socketHandle)
: base(socketHandle)
{
}
}
}