Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115737
D8718.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8718.diff
View Options
diff --git a/src/net.h b/src/net.h
--- a/src/net.h
+++ b/src/net.h
@@ -136,12 +136,35 @@
std::string m_type;
};
+/**
+ * Different types of connections to a peer. This enum encapsulates the
+ * information we have available at the time of opening or accepting the
+ * connection. Aside from INBOUND, all types are initiated by us.
+ */
enum class ConnectionType {
+ /** Peer initiated connections. */
INBOUND,
+ /**
+ * Full relay connections (blocks, addrs, txns) made automatically.
+ * Addresses selected from AddrMan.
+ */
OUTBOUND,
+ /**
+ * Connections to addresses added via addnode or the connect command line
+ * argument.
+ */
MANUAL,
+ /** Short lived connections used to test address validity. */
FEELER,
+ /**
+ * Only relay blocks to these automatic outbound connections.
+ * Addresses selected from AddrMan.
+ */
BLOCK_RELAY,
+ /**
+ * Short lived connections used to solicit addrs when starting the node
+ * without a populated AddrMan.
+ */
ADDR_FETCH,
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:54 (3 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187726
Default Alt Text
D8718.diff (1 KB)
Attached To
D8718: [doc] Describe different connection types
Event Timeline
Log In to Comment