GNUnet debian-0.24.3-29-g453fda2cf
 
Loading...
Searching...
No Matches
conversation.h File Reference

constants for network protocols More...

Include dependency graph for conversation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AudioMessage
 Message to transmit the audio (between client and helpers). More...
 
struct  ClientPhoneRegisterMessage
 Client -> Service message to register a phone. More...
 
struct  ClientPhoneRingMessage
 Service -> Client message for phone is ringing. More...
 
struct  ClientPhoneSuspendMessage
 Service <-> Client message for phone was suspended. More...
 
struct  ClientPhoneResumeMessage
 Service <-> Client message for phone was resumed. More...
 
struct  ClientPhonePickupMessage
 Client -> Service pick up phone that is ringing. More...
 
struct  ClientPhoneHangupMessage
 Client <-> Service hang up phone that may or may not be ringing. More...
 
struct  ClientAudioMessage
 Message Client <-> Service to transmit the audio. More...
 
struct  ClientCallMessage
 Client -> Service message to call a phone. More...
 
struct  ClientPhonePickedupMessage
 Service -> Client: other peer has picked up the phone, we are now talking. More...
 
struct  CadetPhoneRingInfoPS
 Information signed in a struct CadetPhoneRingMessage whereby the caller self-identifies to the receiver. More...
 
struct  CadetPhoneRingMessage
 Cadet message to make a phone ring. More...
 
struct  CadetPhoneHangupMessage
 Cadet message for hanging up. More...
 
struct  CadetPhonePickupMessage
 Cadet message for picking up. More...
 
struct  CadetPhoneSuspendMessage
 Cadet message for phone suspended. More...
 
struct  CadetPhoneResumeMessage
 Cadet message for phone resumed. More...
 
struct  CadetAudioMessage
 Cadet message to transmit the audio. More...
 

Macros

#define MAX_TRANSMIT_DELAY
 
#define HIGH_BIT   ((uint32_t) (1LL << 31))
 Highest bit in a 32-bit unsigned integer, bit set if we are making an outgoing call, bit unset for local lines.
 

Detailed Description

constants for network protocols

Author
Siomon Dieterle
Andreas Fuchs

Definition in file conversation.h.

Macro Definition Documentation

◆ MAX_TRANSMIT_DELAY

#define MAX_TRANSMIT_DELAY
Value:
#define GNUNET_TIME_UNIT_SECONDS
One second.
struct GNUNET_TIME_Relative GNUNET_TIME_relative_multiply(struct GNUNET_TIME_Relative rel, unsigned long long factor)
Multiply relative time by a given factor.
Definition time.c:486

Definition at line 41 of file conversation.h.

58{
62 struct GNUNET_MessageHeader header;
63
64 /* followed by audio data */
65};
66
67
72{
77
81 uint32_t reserved GNUNET_PACKED;
82
87};
88
89
94{
99
104 uint32_t cid GNUNET_PACKED;
105
109 uint32_t key_len;
110
114};
115
116
121{
126
131 uint32_t cid GNUNET_PACKED;
132};
133
134
139{
144
149 uint32_t cid GNUNET_PACKED;
150};
151
152
157{
162
167 uint32_t cid GNUNET_PACKED;
168};
169
170
176{
181
186 uint32_t cid GNUNET_PACKED;
187};
188
189
194{
199
204 uint32_t cid GNUNET_PACKED;
205
206 /* followed by audio data */
207};
208
209
214{
219
223 uint32_t reserved GNUNET_PACKED;
224
229
234
238 uint32_t key_len;
239
243};
244
245
251{
256
261 uint32_t cid GNUNET_PACKED;
262};
263
264
270{
276
281
286
291};
292
293
299{
304
308 uint32_t reserved GNUNET_PACKED;
309
314
318 uint32_t key_len;
319
323 uint32_t sig_len;
324
329};
330
331
336{
341};
342
343
348{
353};
354
355
360{
365};
366
367
372{
377};
378
379
384{
389
390 /* followed by audio data */
391};
392
393
395
396
397#if 0 /* keep Emacsens' auto-indent happy */
398{
399#endif
400#ifdef __cplusplus
401}
402#endif
403
404/* ifndef GNUNET_PROTOCOLS_CONVERSATION_H */
405#endif
406/* end of gnunet_protocols_conversation.h */
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Cadet message to transmit the audio.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_AUDIO.
Cadet message for hanging up.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_HANG_UP.
Cadet message for picking up.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_PICK_UP.
Cadet message for phone resumed.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RESUME.
Information signed in a struct CadetPhoneRingMessage whereby the caller self-identifies to the receiv...
struct GNUNET_PeerIdentity target_peer
Which peer is the call for?
struct GNUNET_TIME_AbsoluteNBO expiration_time
When does the signature expire?
struct GNUNET_CRYPTO_EccSignaturePurpose purpose
Purpose for the signature, must be GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING.
struct GNUNET_HashCode line_port
Which port did the call go to?
Cadet message to make a phone ring.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RING.
uint32_t key_len
The length of the key.
struct GNUNET_TIME_AbsoluteNBO expiration_time
When does the signature expire?
uint32_t reserved
Always zero.
uint32_t sig_len
The length of the signature.
Cadet message for phone suspended.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_SUSPEND.
Message Client <-> Service to transmit the audio.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO.
uint32_t cid
CID, internal caller ID to identify which active call we are sending data to.
Client -> Service message to call a phone.
struct GNUNET_HashCode line_port
Which phone line to call at the peer?
struct GNUNET_PeerIdentity target
Which peer is hosting the line?
uint32_t key_len
The identity key length.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL.
uint32_t reserved
Always zero.
Client <-> Service hang up phone that may or may not be ringing.
uint32_t cid
CID, internal caller ID to identify which active call we are talking about.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP.
Service -> Client: other peer has picked up the phone, we are now talking.
uint32_t cid
Call ID of the corresponding GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP.
Client -> Service pick up phone that is ringing.
uint32_t cid
CID, internal caller ID to identify which active call we are talking about.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICK_UP.
Client -> Service message to register a phone.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_REGISTER.
struct GNUNET_HashCode line_port
Phone line / CADET port to register.
uint32_t reserved
Always zero.
Service <-> Client message for phone was resumed.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RESUME.
uint32_t cid
CID, internal caller ID to identify which active call we are talking about.
Service -> Client message for phone is ringing.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RING.
uint32_t cid
CID, internal caller ID number used in the future to identify which active call we are talking about.
uint32_t key_len
The identity key length.
Service <-> Client message for phone was suspended.
struct GNUNET_MessageHeader header
Type is: GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_SUSPEND.
uint32_t cid
CID, internal caller ID to identify which active call we are talking about.
header of what an ECC signature signs this must be followed by "size - 8" bytes of the actual signed ...
A 512-bit hashcode.
Header for all communications.
The identity of the host (wraps the signing key of the peer).
Time for absolute time used by GNUnet, in microseconds and in network byte order.

◆ HIGH_BIT

#define HIGH_BIT   ((uint32_t) (1LL << 31))

Highest bit in a 32-bit unsigned integer, bit set if we are making an outgoing call, bit unset for local lines.

Definition at line 50 of file conversation.h.