summaryrefslogtreecommitdiff
path: root/icmpd.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-08-13 18:00:43 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-08-13 18:00:43 +0200
commitf5054cc7ee058cff2226994036949e77725ae454 (patch)
treed19299f5b04559f7fb195862d978d8f0f1bde984 /icmpd.h
parent4450f06082ea6e337762f9acdfefd012f815411a (diff)
icmpd cleanup
Diffstat (limited to 'icmpd.h')
-rw-r--r--icmpd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/icmpd.h b/icmpd.h
index 2c46788..e5daf7b 100644
--- a/icmpd.h
+++ b/icmpd.h
@@ -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