proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Events.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree.
7
*/
8
9
#include <
fizz/protocol/Events.h
>
10
11
namespace
fizz
{
12
folly::StringPiece
toString
(
Event
event) {
13
switch
(event) {
14
case
Event::ClientHello
:
15
return
"ClientHello"
;
16
case
Event::ServerHello
:
17
return
"ServerHello"
;
18
case
Event::EndOfEarlyData
:
19
return
"EndOfEarlyData"
;
20
case
Event::HelloRetryRequest
:
21
return
"HelloRetryRequest"
;
22
case
Event::EncryptedExtensions
:
23
return
"EncryptedExtensions"
;
24
case
Event::CertificateRequest
:
25
return
"CertificateRequest"
;
26
case
Event::Certificate
:
27
return
"Certificate"
;
28
case
Event::CompressedCertificate
:
29
return
"CompressedCertificate"
;
30
case
Event::CertificateVerify
:
31
return
"CertificateVerify"
;
32
case
Event::Finished
:
33
return
"Finished"
;
34
case
Event::NewSessionTicket
:
35
return
"NewSessionTicket"
;
36
case
Event::KeyUpdate
:
37
return
"KeyUpdate"
;
38
case
Event::Alert
:
39
return
"Alert"
;
40
case
Event::Accept
:
41
return
"Accept"
;
42
case
Event::Connect
:
43
return
"Connect"
;
44
case
Event::AppData
:
45
return
"AppData"
;
46
case
Event::EarlyAppWrite
:
47
return
"EarlyAppWrite"
;
48
case
Event::AppWrite
:
49
return
"AppWrite"
;
50
case
Event::AppClose
:
51
return
"AppClose"
;
52
case
Event::WriteNewSessionTicket
:
53
return
"WriteNewSessionTicket"
;
54
case
Event::NUM_EVENTS
:
55
return
"Invalid event NUM_EVENTS"
;
56
}
57
return
"Unknown event"
;
58
}
59
}
// namespace fizz
fizz::Event::NUM_EVENTS
fizz::Event::WriteNewSessionTicket
fizz::toString
folly::StringPiece toString(StateEnum state)
Definition:
State.cpp:16
fizz::Event::Finished
fizz::Event::AppWrite
fizz::Event::AppData
fizz::Event::Certificate
fizz::Event::HelloRetryRequest
fizz::Event::CertificateRequest
Events.h
fizz
Definition:
Actions.h:16
folly::Range< const char * >
fizz::Event::KeyUpdate
fizz::Event::CertificateVerify
fizz::Event::EncryptedExtensions
fizz::Event
Event
Definition:
Events.h:15
fizz::Event::Alert
fizz::Event::ServerHello
fizz::Event::ClientHello
fizz::Event::Accept
fizz::Event::CompressedCertificate
fizz::Event::NewSessionTicket
fizz::Event::EndOfEarlyData
fizz::Event::AppClose
fizz::Event::Connect
fizz::Event::EarlyAppWrite
proxygen
fizz
fizz
protocol
Events.cpp
Generated by
1.8.11