#include <protocol.h>

Classes | |
| struct | MessageCreateGroupSession |
| struct | MessageCreateReservation |
Public Types | |
| enum | { RelayEvent, RelayEventSelfDiscard, RelayEvents, RelayEventsSelfDiscard, CreateGroupSession, EndGroupSession, ExpireGroupSession, FindGroupSessions, FindGroupSessionsResult, FindGroupSessionsForMember, ReturnGroupSessionsForMember, FindGroupSessionsByType, ReturnGroupSessionsByType, CreateReservation, CancelReservation, StartGroupSession, FindMembers, FindMembersResult, AddMembers, RemoveMembers, AddMember, AddMemberConfirm, RemoveMember, RemoveMemberConfirm } |
| enum | { DefaultPayloadCapacity = NS_SSRC_SPREAD::Message::DefaultCapacity } |
| enum | MemberType { Participant, Observer } |
| enum | AddMemberResultCode { AddMemberInternalError, AddMemberNonexistentGroupSession, AddMemberDuplicateEntry, AddMemberMaxObserversReached, AddMemberSuccess } |
| typedef protocol::ServiceProtocol < protocol::GroupSession > | super |
| typedef std::vector < ExpirationNotification > | expiration_notification_container |
| typedef std::vector< string > | query_list |
Public Member Functions | |
| WISP_IMPORT (super, caller_type) | |
| WISP_PROTOCOL_MESSAGE (EndGroupSession, protocol::MessageGroupSession,((gsid_type, gsid))) | |
| WISP_PROTOCOL_MESSAGE (CancelReservation, protocol::MessageGroupSession,((gsid_type, gsid))((uid_type, requestor))) | |
| WISP_PROTOCOL_MESSAGE (StartGroupSession, protocol::MessageGroupSession,((string, gs_name))((GroupSession, session))) | |
| WISP_STRUCT (ExpirationNotification,((gsid_type, gsid))((uid_container, uids))) | |
| WISP_PROTOCOL_MESSAGE (ExpireGroupSession, protocol::MessageGroupSession,((expiration_notification_container, notifications))) | |
| Expires both active sessions and reservations. | |
| WISP_PROTOCOL_MESSAGE_WITH_INIT (RelayEvent, protocol::MessageGroupSession,((gsid_type, gsid))((string, event_queue))((properties_ptr, event)),((gsid_type()))((string()))((properties_ptr(new Properties)))) | |
| WISP_PROTOCOL_MESSAGE_WITH_INIT (RelayEventSelfDiscard, protocol::MessageGroupSession,((uid_type, source))((gsid_type, gsid))((string, event_queue))((properties_ptr, event)),((uid_type()))((gsid_type()))((string()))((properties_ptr(new Properties)))) | |
| WISP_PROTOCOL_MESSAGE_WITH_INIT (RelayEvents, protocol::MessageGroupSession,((gsid_type, gsid))((string, event_queue))((std::vector< Properties >, events)),((gsid_type()))((string()))((std::vector< Properties >()))) | |
| WISP_PROTOCOL_MESSAGE_WITH_INIT (RelayEventsSelfDiscard, protocol::MessageGroupSession,((uid_type, source))((gsid_type, gsid))((string, event_queue))((std::vector< Properties >, events)),((uid_type()))((gsid_type()))((string()))((std::vector< Properties >()))) | |
| WISP_PROTOCOL_MESSAGE (FindGroupSessions, protocol::MessageGroupSession,((uid_type, requestor))((db_limit_type, limit))((db_offset_type, offset))) | |
| WISP_PROTOCOL_MESSAGE (FindGroupSessionsResult, protocol::MessageGroupSession,((uid_type, requestor))((unsigned int, total_sessions))((db_limit_type, limit))((db_offset_type, offset))((string, gs_name))((group_session_container, sessions))) | |
| WISP_PROTOCOL_MESSAGE (FindGroupSessionsForMember, protocol::MessageGroupSession,((uid_type, uid))) | |
| WISP_PROTOCOL_MESSAGE (ReturnGroupSessionsForMember, protocol::MessageGroupSession,((uid_type, uid))((string, gs_name))((group_session_container, participating))((group_session_container, observing))((reservation_container, awaiting))) | |
| WISP_PROTOCOL_MESSAGE (FindGroupSessionsByType, protocol::MessageGroupSession,((query_list, keys))) | |
| WISP_PROTOCOL_MESSAGE (ReturnGroupSessionsByType, protocol::MessageGroupSession,((group_session_container, sessions))) | |
| WISP_PROTOCOL_MESSAGE (FindMembers, protocol::MessageGroupSession,((uid_type, requestor))((gsid_container, sessions))) | |
| WISP_PROTOCOL_MESSAGE (FindMembersResult, protocol::MessageGroupSession,((uid_type, requestor))((member_container, participants))((member_container, observers))) | |
| WISP_PROTOCOL_MESSAGE (AddMembers, protocol::MessageGroupSession,((member_container, participants))((member_container, observers))) | |
| WISP_PROTOCOL_MESSAGE (RemoveMembers, protocol::MessageGroupSession,((member_container, participants))((member_container, observers))) | |
| WISP_PROTOCOL_MESSAGE (AddMember, protocol::MessageGroupSession,((MemberType, member_type))((Member, member))) | |
| WISP_PROTOCOL_MESSAGE (AddMemberConfirm, protocol::MessageGroupSession,((AddMemberResultCode, result))((MemberType, member_type))((uid_type, uid))((string, gs_name))((GroupSession, session))) | |
| WISP_PROTOCOL_MESSAGE (RemoveMember, protocol::MessageGroupSession,((MemberType, member_type))((Member, member))) | |
| WISP_PROTOCOL_MESSAGE (RemoveMemberConfirm, protocol::MessageGroupSession,((MemberType, member_type))((Member, member))((string, gs_name))((GroupSession, session))) | |
| WISP_ONE_WAY_CALL (caller_type, CreateGroupSession) | |
| WISP_ONE_WAY_CALL (caller_type, EndGroupSession) | |
| WISP_ONE_WAY_CALL (caller_type, ExpireGroupSession) | |
| WISP_ONE_WAY_CALL (caller_type, RelayEvent) | |
| WISP_ONE_WAY_CALL (caller_type, RelayEventSelfDiscard) | |
| WISP_ONE_WAY_CALL (caller_type, RelayEvents) | |
| WISP_ONE_WAY_CALL (caller_type, RelayEventsSelfDiscard) | |
| WISP_ONE_WAY_CALL (caller_type, CreateReservation) | |
| WISP_ONE_WAY_CALL (caller_type, CancelReservation) | |
| WISP_ONE_WAY_CALL (caller_type, StartGroupSession) | |
| WISP_TWO_WAY_CALL (caller_type, FindGroupSessionsForMember, ReturnGroupSessionsForMember) | |
| WISP_ONE_WAY_CALL (caller_type, ReturnGroupSessionsForMember) | |
| WISP_TWO_WAY_CALL (caller_type, FindGroupSessionsByType, ReturnGroupSessionsByType) | |
| WISP_ONE_WAY_CALL (caller_type, ReturnGroupSessionsByType) | |
| WISP_ONE_WAY_CALL (caller_type, FindGroupSessions) | |
| WISP_ONE_WAY_CALL (caller_type, FindGroupSessionsResult) | |
| WISP_ONE_WAY_CALL (caller_type, FindMembers) | |
| WISP_ONE_WAY_CALL (caller_type, FindMembersResult) | |
| WISP_ONE_WAY_CALL (caller_type, AddMembers) | |
| WISP_ONE_WAY_CALL (caller_type, RemoveMembers) | |
| WISP_ONE_WAY_CALL (caller_type, AddMember) | |
| WISP_ONE_WAY_CALL (caller_type, AddMemberConfirm) | |
| WISP_ONE_WAY_CALL (caller_type, RemoveMember) | |
| WISP_ONE_WAY_CALL (caller_type, RemoveMemberConfirm) | |
Static Public Member Functions | |
| static string | event_group_expire () |
| static std::string | service_type () |
| static std::string | service_group () |
Static Public Attributes | |
| static const gsid_type | GSIDMax = boost::integer_traits<gsid_type>::const_max |
| The maximum value a gsid can have. | |
| static const gsid_type | GSIDMin = boost::integer_traits<gsid_type>::const_min |
| The minimum value a gsid can have. | |
| static const gsid_type | GSIDSpace |
| The size of a gsid protocol partition. | |
Detailed Description
Definition at line 53 of file group_session/protocol.h.
Member Typedef Documentation
| typedef std::vector<ExpirationNotification> group_session::GroupSessionProtocol::expiration_notification_container |
Definition at line 203 of file group_session/protocol.h.
| typedef std::vector<string> group_session::GroupSessionProtocol::query_list |
Definition at line 273 of file group_session/protocol.h.
| typedef protocol::ServiceProtocol<protocol::GroupSession> group_session::GroupSessionProtocol::super |
Definition at line 56 of file group_session/protocol.h.
Member Enumeration Documentation
| anonymous enum |
- Enumerator:
Definition at line 84 of file group_session/protocol.h.
| anonymous enum |
Definition at line 111 of file group_session/protocol.h.
- Enumerator:
AddMemberInternalError AddMemberNonexistentGroupSession AddMemberDuplicateEntry AddMemberMaxObserversReached AddMemberSuccess
Definition at line 306 of file group_session/protocol.h.
Definition at line 113 of file group_session/protocol.h.
Member Function Documentation
| static string group_session::GroupSessionProtocol::event_group_expire | ( | ) | [inline, static] |
Definition at line 80 of file group_session/protocol.h.
References WSPR_EVENT_GROUP.
| static std::string protocol::ServiceProtocol< protocol_, BinaryPackingTraits >::service_group | ( | ) | [inline, static, inherited] |
Definition at line 79 of file Protocols.h.
| static std::string protocol::ServiceProtocol< protocol_, BinaryPackingTraits >::service_type | ( | ) | [inline, static, inherited] |
Definition at line 75 of file Protocols.h.
| group_session::GroupSessionProtocol::WISP_IMPORT | ( | super | , |
| caller_type | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| CreateGroupSession | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| EndGroupSession | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| ExpireGroupSession | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RelayEvent | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RelayEventSelfDiscard | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RelayEvents | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RelayEventsSelfDiscard | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| CreateReservation | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| CancelReservation | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| StartGroupSession | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| ReturnGroupSessionsForMember | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| ReturnGroupSessionsByType | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| FindGroupSessions | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| FindGroupSessionsResult | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| FindMembers | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| FindMembersResult | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| AddMembers | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RemoveMembers | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| AddMember | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| AddMemberConfirm | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RemoveMember | |||
| ) |
| group_session::GroupSessionProtocol::WISP_ONE_WAY_CALL | ( | caller_type | , |
| RemoveMemberConfirm | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | EndGroupSession | , |
| protocol::MessageGroupSession | , | ||
| ((gsid_type, gsid)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | CancelReservation | , |
| protocol::MessageGroupSession | , | ||
| ((gsid_type, gsid))((uid_type, requestor)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | StartGroupSession | , |
| protocol::MessageGroupSession | , | ||
| ((string, gs_name))((GroupSession, session)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | ExpireGroupSession | , |
| protocol::MessageGroupSession | , | ||
| ((expiration_notification_container, notifications)) | |||
| ) |
Expires both active sessions and reservations.
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | FindGroupSessions | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, requestor))((db_limit_type, limit))((db_offset_type, offset)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | FindGroupSessionsResult | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, requestor))((unsigned int, total_sessions))((db_limit_type, limit))((db_offset_type, offset))((string, gs_name))((group_session_container, sessions)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | FindGroupSessionsForMember | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, uid)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | ReturnGroupSessionsForMember | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, uid))((string, gs_name))((group_session_container, participating))((group_session_container, observing))((reservation_container, awaiting)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | FindGroupSessionsByType | , |
| protocol::MessageGroupSession | , | ||
| ((query_list, keys)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | ReturnGroupSessionsByType | , |
| protocol::MessageGroupSession | , | ||
| ((group_session_container, sessions)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | FindMembers | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, requestor))((gsid_container, sessions)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | FindMembersResult | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, requestor))((member_container, participants))((member_container, observers)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | AddMembers | , |
| protocol::MessageGroupSession | , | ||
| ((member_container, participants))((member_container, observers)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | RemoveMembers | , |
| protocol::MessageGroupSession | , | ||
| ((member_container, participants))((member_container, observers)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | AddMember | , |
| protocol::MessageGroupSession | , | ||
| ((MemberType, member_type))((Member, member)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | AddMemberConfirm | , |
| protocol::MessageGroupSession | , | ||
| ((AddMemberResultCode, result))((MemberType, member_type))((uid_type, uid))((string, gs_name))((GroupSession, session)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | RemoveMember | , |
| protocol::MessageGroupSession | , | ||
| ((MemberType, member_type))((Member, member)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE | ( | RemoveMemberConfirm | , |
| protocol::MessageGroupSession | , | ||
| ((MemberType, member_type))((Member, member))((string, gs_name))((GroupSession, session)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE_WITH_INIT | ( | RelayEvent | , |
| protocol::MessageGroupSession | , | ||
| ((gsid_type, gsid))((string, event_queue))((properties_ptr, event)) | , | ||
| ((gsid_type()))((string()))((properties_ptr(new Properties))) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE_WITH_INIT | ( | RelayEventSelfDiscard | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, source))((gsid_type, gsid))((string, event_queue))((properties_ptr, event)) | , | ||
| ((uid_type()))((gsid_type()))((string()))((properties_ptr(new Properties))) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE_WITH_INIT | ( | RelayEvents | , |
| protocol::MessageGroupSession | , | ||
| ((gsid_type, gsid))((string, event_queue))((std::vector< Properties >, events)) | , | ||
| ((gsid_type()))((string()))((std::vector< Properties >())) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_PROTOCOL_MESSAGE_WITH_INIT | ( | RelayEventsSelfDiscard | , |
| protocol::MessageGroupSession | , | ||
| ((uid_type, source))((gsid_type, gsid))((string, event_queue))((std::vector< Properties >, events)) | , | ||
| ((uid_type()))((gsid_type()))((string()))((std::vector< Properties >())) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_STRUCT | ( | ExpirationNotification | , |
| ((gsid_type, gsid))((uid_container, uids)) | |||
| ) |
| group_session::GroupSessionProtocol::WISP_TWO_WAY_CALL | ( | caller_type | , |
| FindGroupSessionsForMember | , | ||
| ReturnGroupSessionsForMember | |||
| ) |
| group_session::GroupSessionProtocol::WISP_TWO_WAY_CALL | ( | caller_type | , |
| FindGroupSessionsByType | , | ||
| ReturnGroupSessionsByType | |||
| ) |
Member Data Documentation
const gsid_type group_session::GroupSessionProtocol::GSIDMax = boost::integer_traits<gsid_type>::const_max [static] |
The maximum value a gsid can have.
Definition at line 61 of file group_session/protocol.h.
const gsid_type group_session::GroupSessionProtocol::GSIDMin = boost::integer_traits<gsid_type>::const_min [static] |
The minimum value a gsid can have.
Definition at line 64 of file group_session/protocol.h.
const gsid_type group_session::GroupSessionProtocol::GSIDSpace [static] |
(((boost::integer_traits<gsid_type>::const_max >> 2) + 1)
- (boost::integer_traits<gsid_type>::const_min >> 2)) /
((boost::integer_traits<wisp_message_protocol>::const_max >> 2) + 1)
The size of a gsid protocol partition.
For example, the first protocol partition is assigned the range:
(GSIDMin, GSIDMin + GSIDSpace]
Definition at line 75 of file group_session/protocol.h.
The documentation for this struct was generated from the following file: