mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
minor beautifications
This commit is contained in:
@@ -74,11 +74,13 @@ namespace zmq
|
|||||||
|
|
||||||
// Maximal delay to process command in API thread (in CPU ticks).
|
// Maximal delay to process command in API thread (in CPU ticks).
|
||||||
// 3,000,000 ticks equals to 1 - 2 milliseconds on current CPUs.
|
// 3,000,000 ticks equals to 1 - 2 milliseconds on current CPUs.
|
||||||
|
// Note that delay is only applied when there is continuous stream of
|
||||||
|
// messages to process. If not so, commands are processed immediately.
|
||||||
max_command_delay = 3000000,
|
max_command_delay = 3000000,
|
||||||
|
|
||||||
// Low-precision clock precision in CPU ticks. 1ms. Value of 1000000
|
// Low-precision clock precision in CPU ticks. 1ms. Value of 1000000
|
||||||
// should be OK for CPU frequencies above 1GHz. If should work
|
// should be OK for CPU frequencies above 1GHz. If should work
|
||||||
// reasonably well fro CPU frequencies above 500MHz. For lower CPU
|
// reasonably well for CPU frequencies above 500MHz. For lower CPU
|
||||||
// frequencies you may consider lowering this value to get best
|
// frequencies you may consider lowering this value to get best
|
||||||
// possible latencies.
|
// possible latencies.
|
||||||
clock_precision = 1000000,
|
clock_precision = 1000000,
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ namespace zmq
|
|||||||
// Address to connect to.
|
// Address to connect to.
|
||||||
std::string protocol;
|
std::string protocol;
|
||||||
std::string address;
|
std::string address;
|
||||||
|
|
||||||
|
connect_session_t (const connect_session_t&);
|
||||||
|
void operator = (const connect_session_t&);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ namespace zmq
|
|||||||
|
|
||||||
// Name of the session. Corresponds to the peer's strong identity.
|
// Name of the session. Corresponds to the peer's strong identity.
|
||||||
blob_t name;
|
blob_t name;
|
||||||
|
|
||||||
|
named_session_t (const named_session_t&);
|
||||||
|
void operator = (const named_session_t&);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ namespace zmq
|
|||||||
|
|
||||||
// Hook into session's disconnection mechanism.
|
// Hook into session's disconnection mechanism.
|
||||||
void detached ();
|
void detached ();
|
||||||
|
|
||||||
|
transient_session_t (const transient_session_t&);
|
||||||
|
void operator = (const transient_session_t&);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user