diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-11 14:44:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-11 14:44:03 +0000 |
commit | 73e51ecfd8c30f6b7f103ebd60dfc800ab5d6717 (patch) | |
tree | 63db9f1dd5afb3943f19be71f3ee8a83b37e7a4a /src/include/gnunet_ats_service.h | |
parent | 471b156c8bbd7d9f9ba2aae6637d6354a39a9153 (diff) | |
download | gnunet-73e51ecfd8c30f6b7f103ebd60dfc800ab5d6717.tar.gz gnunet-73e51ecfd8c30f6b7f103ebd60dfc800ab5d6717.zip |
new function to check if session is known to ats
required for two reasons:
we cannot update metrics for validation sessions since these are not known to ats
a remote peer can decide to use an inbound validation session to transmit data, so we have to add the session to ats if we receive payload on a session
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index c20bf14f5..bc5148de9 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -644,6 +644,19 @@ GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh, | |||
644 | socklen_t addrlen); | 644 | socklen_t addrlen); |
645 | 645 | ||
646 | /** | 646 | /** |
647 | * Test if a address and a session is known to ATS | ||
648 | * | ||
649 | * @param sh the scheduling handle | ||
650 | * @param address the address | ||
651 | * @param session the session | ||
652 | * @return GNUNET_YES or GNUNET_NO | ||
653 | */ | ||
654 | int | ||
655 | GNUNET_ATS_session_known (struct GNUNET_ATS_SchedulingHandle *sh, | ||
656 | const struct GNUNET_HELLO_Address *address, | ||
657 | struct Session *session); | ||
658 | |||
659 | /** | ||
647 | * We have a new address ATS should know. Addresses have to be added with this | 660 | * We have a new address ATS should know. Addresses have to be added with this |
648 | * function before they can be: updated, set in use and destroyed | 661 | * function before they can be: updated, set in use and destroyed |
649 | * | 662 | * |