Home | History | Annotate | Download | only in websockets

Lines Matching refs:fields

57   std::vector<std::string> fields;
59 fields.push_back("Upgrade: WebSocket");
60 fields.push_back("Connection: Upgrade");
62 fields.push_back("Host: " + GetHostFieldValue());
64 fields.push_back("Origin: " + GetOriginFieldValue());
67 fields.push_back("Sec-WebSocket-Protocol: " + protocol_);
71 fields.push_back("Sec-WebSocket-Key1: " + parameter_->GetSecWebSocketKey1());
72 fields.push_back("Sec-WebSocket-Key2: " + parameter_->GetSecWebSocketKey2());
74 std::random_shuffle(fields.begin(), fields.end(), base::RandGenerator);
76 for (size_t i = 0; i < fields.size(); i++) {
77 msg += fields[i] + "\r\n";