diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-21 14:42:54 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-21 14:42:54 +0000 |
commit | 40c8383cbd3decba4d605d6f94b102a1ed18a825 (patch) | |
tree | 11aa480f80b2c6f3630bb4128a0cefed60b173aa /src/include/gnunet_stream_lib.h | |
parent | ed2c4e1a48219c6daae03fd161fd311f22afe05f (diff) | |
download | gnunet-40c8383cbd3decba4d605d6f94b102a1ed18a825.tar.gz gnunet-40c8383cbd3decba4d605d6f94b102a1ed18a825.zip |
-added stream listen success callback
Diffstat (limited to 'src/include/gnunet_stream_lib.h')
-rw-r--r-- | src/include/gnunet_stream_lib.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/include/gnunet_stream_lib.h b/src/include/gnunet_stream_lib.h index c8a207d59..fd44ccfa0 100644 --- a/src/include/gnunet_stream_lib.h +++ b/src/include/gnunet_stream_lib.h | |||
@@ -86,6 +86,13 @@ typedef void (*GNUNET_STREAM_OpenCallback) (void *cls, | |||
86 | 86 | ||
87 | 87 | ||
88 | /** | 88 | /** |
89 | * Callback for signalling stream listen success; See | ||
90 | * GNUNET_STREAM_OPTION_SIGNAL_LISTEN_SUCCESS | ||
91 | */ | ||
92 | typedef void (*GNUNET_STREAM_ListenSuccessCallback) (void); | ||
93 | |||
94 | |||
95 | /** | ||
89 | * Options for the stream. | 96 | * Options for the stream. |
90 | */ | 97 | */ |
91 | enum GNUNET_STREAM_Option | 98 | enum GNUNET_STREAM_Option |
@@ -112,9 +119,17 @@ enum GNUNET_STREAM_Option | |||
112 | GNUNET_STREAM_OPTION_TESTING_SET_WRITE_SEQUENCE_NUMBER, | 119 | GNUNET_STREAM_OPTION_TESTING_SET_WRITE_SEQUENCE_NUMBER, |
113 | 120 | ||
114 | /** | 121 | /** |
115 | * Listen socket timeout in milliseconds | 122 | * Listen socket timeout in milliseconds given as uint32_t |
123 | */ | ||
124 | GNUNET_STREAM_OPTION_LISTEN_TIMEOUT, | ||
125 | |||
126 | /** | ||
127 | * Option to register a callback when stream listening is | ||
128 | * successfull. Takes parameter of the form | ||
129 | * GNUNET_STREAM_ListenSuccessCallback. The callback is only called if | ||
130 | * listen is successful | ||
116 | */ | 131 | */ |
117 | GNUNET_STREAM_OPTION_LISTEN_TIMEOUT | 132 | GNUNET_STREAM_OPTION_SIGNAL_LISTEN_SUCCESS |
118 | }; | 133 | }; |
119 | 134 | ||
120 | 135 | ||