Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #130 from jean-airoldie/default_sockopt
Browse files Browse the repository at this point in the history
Document default socket options in `Socket` trait
  • Loading branch information
jean-airoldie authored Feb 13, 2020
2 parents bc4c04f + e816495 commit 760bf91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libzmq/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ impl From<Period> for Serde<Option<Duration>> {
}

/// Methods shared by all thread-safe sockets.
///
/// Here is the list of socket option that differs from the ØMQ defaults:
/// * All sockets have their linger period set to zero (`ZMQ_BLOCKY`).
/// * All sockets have IPV6 enabled (`ZMQ_IPV6`).
/// * All sockets have `ZMQ_ZAP_ENFORCE_DOMAIN` set to true.
/// * All sockets have `ZMQ_ZAP_DOMAIN` hardcoded to "global".
pub trait Socket: GetRawSocket {
/// Schedules a connection to a [`Endpoint`].
///
Expand Down

0 comments on commit 760bf91

Please sign in to comment.