diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-18 19:24:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-18 19:24:33 +0100 |
commit | dfde8ea01a08a32340a47df29ffc2571c031488b (patch) | |
tree | 81abde784965de4a4d3f32f882a39353cc96a88d /src/include/gnunet_cadet_service.h | |
parent | 3edc21c27d208e45dc1af76131a480a3ebf1e8d3 (diff) | |
download | gnunet-dfde8ea01a08a32340a47df29ffc2571c031488b.tar.gz gnunet-dfde8ea01a08a32340a47df29ffc2571c031488b.zip |
create matching connection objects for inbound connections
Diffstat (limited to 'src/include/gnunet_cadet_service.h')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index c17cb983c..7090d4410 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -412,10 +412,10 @@ typedef void | |||
412 | (*GNUNET_CADET_ChannelCB) (void *cls, | 412 | (*GNUNET_CADET_ChannelCB) (void *cls, |
413 | const struct GNUNET_PeerIdentity *root, | 413 | const struct GNUNET_PeerIdentity *root, |
414 | const struct GNUNET_PeerIdentity *dest, | 414 | const struct GNUNET_PeerIdentity *dest, |
415 | uint32_t port, | 415 | uint32_t /* UGH */ port, |
416 | uint32_t root_channel_number, | 416 | uint32_t /* ugh */ root_channel_number, |
417 | uint32_t dest_channel_number, | 417 | uint32_t /* ugh */ dest_channel_number, |
418 | uint32_t public_channel_number); | 418 | uint32_t /* ugh */ public_channel_number); |
419 | 419 | ||
420 | /** | 420 | /** |
421 | * Method called to retrieve information about all peers in CADET, called | 421 | * Method called to retrieve information about all peers in CADET, called |
@@ -491,10 +491,14 @@ struct GNUNET_CADET_ConnectionTunnelIdentifier | |||
491 | 491 | ||
492 | 492 | ||
493 | /** | 493 | /** |
494 | * Number identifying a CADET channel. | 494 | * Number identifying a CADET channel within a tunnel. |
495 | */ | 495 | */ |
496 | struct GNUNET_CADET_ChannelNumber | 496 | struct GNUNET_CADET_ChannelTunnelNumber |
497 | { | 497 | { |
498 | /** | ||
499 | * Which number does this channel have that uniquely identfies | ||
500 | * it within its tunnel? | ||
501 | */ | ||
498 | uint32_t cn GNUNET_PACKED; | 502 | uint32_t cn GNUNET_PACKED; |
499 | }; | 503 | }; |
500 | 504 | ||
@@ -517,7 +521,7 @@ typedef void | |||
517 | const struct GNUNET_PeerIdentity *peer, | 521 | const struct GNUNET_PeerIdentity *peer, |
518 | unsigned int n_channels, | 522 | unsigned int n_channels, |
519 | unsigned int n_connections, | 523 | unsigned int n_connections, |
520 | const struct GNUNET_CADET_ChannelNumber *channels, | 524 | const struct GNUNET_CADET_ChannelTunnelNumber *channels, |
521 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *connections, | 525 | const struct GNUNET_CADET_ConnectionTunnelIdentifier *connections, |
522 | unsigned int estate, | 526 | unsigned int estate, |
523 | unsigned int cstate); | 527 | unsigned int cstate); |
@@ -537,7 +541,7 @@ typedef void | |||
537 | void | 541 | void |
538 | GNUNET_CADET_get_channel (struct GNUNET_CADET_Handle *h, | 542 | GNUNET_CADET_get_channel (struct GNUNET_CADET_Handle *h, |
539 | struct GNUNET_PeerIdentity *peer, | 543 | struct GNUNET_PeerIdentity *peer, |
540 | uint32_t channel_number, | 544 | uint32_t /* UGH */ channel_number, |
541 | GNUNET_CADET_ChannelCB callback, | 545 | GNUNET_CADET_ChannelCB callback, |
542 | void *callback_cls); | 546 | void *callback_cls); |
543 | 547 | ||