Commit 1017438
committed
feat: add get_peer_address_if_connected helper method
Add a helper method that returns a peer's socket address by first checking active connections and falling back to stored peer information if no active connection exists. This provides a convenient way to look up peer addresses with a preference for currently active connections.1 parent 22cb1df commit 1017438
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1147 | 1164 | | |
1148 | 1165 | | |
1149 | 1166 | | |
| |||
1215 | 1232 | | |
1216 | 1233 | | |
1217 | 1234 | | |
| 1235 | + | |
1218 | 1236 | | |
1219 | 1237 | | |
1220 | 1238 | | |
| |||
0 commit comments