diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-08-13 18:00:43 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-08-13 18:00:43 +0200 |
commit | f5054cc7ee058cff2226994036949e77725ae454 (patch) | |
tree | d19299f5b04559f7fb195862d978d8f0f1bde984 /icmpd.h | |
parent | 4450f06082ea6e337762f9acdfefd012f815411a (diff) |
icmpd cleanup
Diffstat (limited to 'icmpd.h')
-rw-r--r-- | icmpd.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -13,6 +13,16 @@ struct icmpd_received { }; +// The interface exposed here is NOT thread-safe. Having multiple threads in +// in the same process working with icmpd is unsafe, since internal communication +// assumes one calling thread. + + +// This functions as a "connection" with another party. A server should create +// a new connection for each client it communicates with (in addition to a +// single possible client_addr=0 connection for receiving connection requests), +// and likewise a client should create a new connection for each server it +// communicates with. struct icmpd; // Pass 0 as client_addr to listen for messages from any IP (this channel |