PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/External/Quickblox.framework/Versions/A/Headers/ChatService/Classes/Definitions/Consts.h

https://gitlab.com/intelij/ChattAR-ios
C Header | 89 lines | 52 code | 12 blank | 25 comment | 0 complexity | 067bb6e0d8848395aba42b2588c9eb7f MD5 | raw file
  1. //
  2. // Consts.h
  3. // Quickblox
  4. //
  5. // Created by IgorKh on 2/6/13.
  6. // Copyright (c) 2013 QuickBlox. All rights reserved.
  7. //
  8. // VideoChat Settings
  9. extern NSString* const kQBVideoChatVideoFramesPerSecond;
  10. extern NSString* const kQBVideoChatCallTimeout;
  11. extern NSString* const kQBVideoChatBadConnectionTimeout;
  12. extern NSString* const kQBVideoChatTURNServerEndPoint;
  13. extern NSString* const kQBVideoChatFrameQualityPreset;
  14. extern NSString* const kQBVideoChatWriteQueueMaxVideoOperationsThreshold;
  15. extern NSString* const kQBVideoChatWriteQueueMaxAudioOperationsThreshold;
  16. extern NSString* const kQBVideoChatP2PTimeout;
  17. // video chat control messages
  18. #define qbvideochat_pattern @"qbvideochat_"
  19. #define qbvideochat_call @"qbvideochat_call"
  20. #define qbvideochat_acceptCall @"qbvideochat_acceptCall"
  21. #define qbvideochat_rejectCall @"qbvideochat_rejectCall"
  22. #define qbvideochat_stopCall @"qbvideochat_stopCall"
  23. #define qbvideochat_sendPublicAddress @"qbvideochat_sendPublicAddress"
  24. //
  25. #define qbvideochat_p2pIsNotPossible @"qbvideochat_p2pIsNotPossible"
  26. #define qbvideochat_sendTURNRelayAddress @"qbvideochat_sendTURNRelayAddress"
  27. #define qbChatMessageExtraParams @"extraParams"
  28. #define qbChatMessageQuickBloxExtension @"quickblox"
  29. #define qbChatPresenceExtension @"x"
  30. #define qbChatPresenceExtensionXMLNS @"http://chat.quickblox.com/presence_extension"
  31. #define qbChatMessageExtraParamSessionID @"sessionID"
  32. #define qbChatMessageExtraParamCallType @"callType"
  33. #define qbChatMessageExtraParamProtocol @"protocol"
  34. // TCP/UDP video/audio packets tags
  35. #define sendUDPAudioDataTag 7007
  36. #define sendUDPVideoDataTag 3007
  37. #define writeTCPAudioDataTag 7001
  38. #define writeTCPVideoDataTag 5001
  39. // TCP socket type
  40. #define qbTCPSocketType1_ControlSocket 1
  41. #define qbTCPSocketType2_DataSocketConnectedDirectToRelay 2
  42. #define qbTCPSocketType3_DataSocketConnectedDirectToTURNServer 3
  43. // Connection progress
  44. //
  45. #define qbChatConnectionTotalSteps 21
  46. //
  47. //
  48. #define qbChatConnectionStep1AcceptedCall 1
  49. //
  50. #define qbChatConnectionStep2SentBuindingRequestToTURNServer 2
  51. #define qbChatConnectionStep3ReceivedBuindingResponseFromTURNServer 3
  52. //
  53. #define qbChatConnectionStep4SentPublicAddressToOpponent 4
  54. #define qbChatConnectionStep5ReceivedOpponentPublicAddress 5
  55. #define qbChatConnectionStep6ConnectingToTURNServer 6
  56. #define qbChatConnectionStep7ConnectedToTURNServer 7
  57. //
  58. //
  59. #define qbChatConnectionStep8SentAllocationRequestToTURNServer 8
  60. #define qbChatConnectionStep9ReceivedAllocationResponseFromTURNServer 9
  61. //
  62. #define qbChatConnectionStep10SentPermissionRequestToTURNServer 10
  63. #define qbChatConnectionStep11ReceivedPermissionResponseFromTURNServer 11
  64. #define qbChatConnectionStep12SentRelayAddressToOpponent 12
  65. #define qbChatConnectionStep13ReceivedOpponentRelayAddress 13
  66. //
  67. #define qbChatConnectionStep14ConnectingToRelayAddress 14
  68. #define qbChatConnectionStep15ConnectedToRelayAddress 15
  69. #define qbChatConnectionStep16ReceivedConnectionAttemptMessageFromTURNServer 16
  70. //
  71. #define qbChatConnectionStep17ConnectingToTURNServer 17
  72. #define qbChatConnectionStep18ConnectedToTURNServer 18
  73. //
  74. #define qbChatConnectionStep19SentConnectionBindRequestToTURNServer 19
  75. #define qbChatConnectionStep20ReceivedConnectionBindResponseFromTURNServer 20
  76. //
  77. #define qbChatConnectionStep21ConnectionEstablishedSuccessfuly 21