Babel
Epitech's C++ VoIP project
RFCCodes.hpp
Go to the documentation of this file.
1 //
2 // Created by cbihan on 05/10/2021.
3 //
4 
5 #pragma once
6 
7 #include <cstdint>
8 
9 namespace Babel
10 {
11  enum class RFCCodes : uint16_t
12  {
13  // 64 47 @/
16  Debug = 0b0100000000101111,
17 
18  // Client -> Server
19 
21  Login = 200,
23  ListUsers = 201,
25  CallUser = 202,
27  JoinCall = 203,
29  DenyCall = 204,
31  HangUp = 205,
32 
33  // Server -> Client
34 
36  Response = 300,
38  Called = 301,
40  UserJoinedCall = 302,
42  UserLeftCall = 303
43  };
44 
45 }
Babel::RFCCodes::UserLeftCall
@ UserLeftCall
User left call.
Babel::RFCCodes::Called
@ Called
Receiving a call from a user.
Babel::RFCCodes
RFCCodes
Definition: RFCCodes.hpp:11
Babel
Definition: IAudioManager.hpp:13
Babel::RFCCodes::DenyCall
@ DenyCall
Deny a receiving call from a user.
Babel::RFCCodes::ListUsers
@ ListUsers
Get the list of server currently active users.
Babel::RFCCodes::Response
@ Response
General purpose response.
Babel::RFCCodes::UserJoinedCall
@ UserJoinedCall
User joining call.
Babel::RFCCodes::HangUp
@ HangUp
Hang up a call.
Babel::RFCCodes::Login
@ Login
Login a user in the server.
Babel::RFCCodes::Debug
@ Debug
Code used as debug purposes only.
Babel::RFCCodes::JoinCall
@ JoinCall
Accept a call from a user.
Babel::RFCCodes::CallUser
@ CallUser
Call a user from it's username.