HomeSort by relevance Sort by last modified time
    Searched refs:handshake (Results 1 - 25 of 55) sorted by null

1 2 3

  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/testdata/handlers/
abort_by_user_wsh.py 31 from mod_pywebsocket import handshake namespace
35 raise handshake.AbortedByUserException("abort for test")
39 raise handshake.AbortedByUserException("abort for test")
  /external/chromium/net/websockets/
websocket_handshake_draft75_unittest.cc 26 scoped_ptr<WebSocketHandshakeDraft75> handshake(
31 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
33 handshake->CreateClientHandshakeMessage());
35 const char kResponse[] = "HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
43 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
45 EXPECT_EQ(-1, handshake->ReadServerHandshake(kResponse, 16));
46 EXPECT_EQ(WebSocketHandshake::MODE_INCOMPLETE, handshake->mode());
48 EXPECT_EQ(-1, handshake->ReadServerHandshake(
51 EXPECT_EQ(WebSocketHandshake::MODE_NORMAL, handshake->mode());
53 EXPECT_EQ(-1, handshake->ReadServerHandshake
    [all...]
websocket_handshake_unittest.cc 21 static void SetUpParameter(WebSocketHandshake* handshake,
32 handshake->parameter_.reset(parameter);
97 static std::string GetResourceName(WebSocketHandshake* handshake) {
98 return handshake->GetResourceName();
100 static std::string GetHostFieldValue(WebSocketHandshake* handshake) {
101 return handshake->GetHostFieldValue();
103 static std::string GetOriginFieldValue(WebSocketHandshake* handshake) {
104 return handshake->GetOriginFieldValue();
122 scoped_ptr<WebSocketHandshake> handshake(
127 SetUpParameter(handshake.get(), 777007543U, 114997259U
    [all...]
  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/handshake/
__init__.py 31 """WebSocket opening handshake processor. This class try to apply available
32 opening handshake processors for each protocol version until a connection is
40 from mod_pywebsocket.handshake import draft75
41 from mod_pywebsocket.handshake import hybi00
42 from mod_pywebsocket.handshake import hybi
45 from mod_pywebsocket.handshake._base import AbortedByUserException
46 from mod_pywebsocket.handshake._base import HandshakeException
47 from mod_pywebsocket.handshake._base import VersionException
54 """Performs WebSocket handshake.
59 allowDraft75: allow draft 75 handshake protocol
    [all...]
hybi00.py 31 """This file provides the opening handshake processor for the WebSocket
53 from mod_pywebsocket.handshake._base import HandshakeException
54 from mod_pywebsocket.handshake._base import build_location
55 from mod_pywebsocket.handshake._base import check_header_lines
56 from mod_pywebsocket.handshake._base import format_header
57 from mod_pywebsocket.handshake._base import get_mandatory_header
58 from mod_pywebsocket.handshake._base import validate_subprotocol
69 """Opening handshake processor for the WebSocket protocol version HyBi 00.
80 handshake.
89 """Perform WebSocket Handshake
    [all...]
hybi.py 31 """This file provides the opening handshake processor for the WebSocket
52 from mod_pywebsocket.handshake._base import check_request_line
53 from mod_pywebsocket.handshake._base import format_header
54 from mod_pywebsocket.handshake._base import get_mandatory_header
55 from mod_pywebsocket.handshake._base import HandshakeException
56 from mod_pywebsocket.handshake._base import parse_token_list
57 from mod_pywebsocket.handshake._base import validate_mandatory_header
58 from mod_pywebsocket.handshake._base import validate_subprotocol
59 from mod_pywebsocket.handshake._base import VersionException
94 """Opening handshake processor for the WebSocket protocol (RFC 6455).""
    [all...]
draft75.py 46 from mod_pywebsocket.handshake._base import HandshakeException
47 from mod_pywebsocket.handshake._base import build_location
48 from mod_pywebsocket.handshake._base import validate_subprotocol
77 """This class performs WebSocket handshake."""
85 strict: Strictly check handshake request. Default: False.
90 handshake.
100 """Perform WebSocket Handshake.
104 ws_challenge_md5: WebSocket handshake information.
120 self._logger.debug('Sent opening handshake response')
146 self._sendall('HTTP/1.1 101 Web Socket Protocol Handshake\r\n'
    [all...]
  /external/qemu/android/protocol/
attach-ui-impl.c 48 char* handshake = NULL; local
55 &handshake);
64 if (handshake != NULL) {
65 if (handshake[0] != '\0') {
66 fprintf(stdout, " Handshake: %s", handshake);
68 free(handshake);
user-events-proxy.c 76 char* handshake = NULL; local
81 &handshake);
100 if (handshake != NULL) {
101 if (handshake[0] != '\0') {
102 fprintf(stdout, " Handshake: %s", handshake);
104 free(handshake);
core-connection.h 115 * handshake Address of a string to allocate for a handshake message on
123 char** handshake);
128 * handshake Address of a string to allocate for a handshake message on
137 char** handshake);
ui-commands-impl.c 191 char* handshake = NULL; local
202 &handshake);
218 if (handshake != NULL) {
219 if (handshake[0] != '\0') {
220 fprintf(stdout, " Handshake: %s", handshake);
222 free(handshake);
fb-updates-impl.c 176 char* handshake = NULL; local
188 core_connection_create_and_switch(console_socket, switch_cmd, &handshake);
196 // the handshake message.
198 if (handshake != NULL) {
199 char* bpp = strstr(handshake, "bitsperpixel=");
213 handshake);
239 if (handshake != NULL) {
240 if (handshake[0] != '\0') {
241 fprintf(stdout, " Handshake: %s", handshake);
    [all...]
core-connection.c 255 char** handshake)
262 *handshake = NULL;
274 // Read result / handshake
295 *handshake = strdup(buf + 3);
313 *handshake = strdup(buf + 3);
319 *handshake = strdup(buf);
327 char** handshake)
344 if (core_connection_switch_stream(connection, switch_cmd, handshake)) {
core-commands-proxy.c 316 char* handshake = NULL; local
321 &handshake);
346 if (handshake != NULL) {
347 if (handshake[0] != '\0') {
348 fprintf(stdout, " Handshake: %s", handshake);
350 free(handshake);
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
Connection.java 296 final ByteBuffer handshake = ByteBuffer.allocate(ProtocolConstants.QUERY_HEADER_SIZE); local
300 Socket.receive(sock, handshake.array(), 1);
301 final ByteOrder endian = (handshake.getChar() == 0) ? ByteOrder.LITTLE_ENDIAN :
303 handshake.order(endian);
305 // Right after that follows the handshake query header.
306 handshake.position(0);
307 Socket.receive(sock, handshake.array(), handshake.array().length);
310 final int signature = handshake.getInt();
313 final int remains = handshake.getInt() - ProtocolConstants.QUERY_HEADER_SIZE
    [all...]
  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
test_handshake_draft75.py 33 """Tests for handshake module."""
40 from mod_pywebsocket.handshake import draft75 as handshake namespace
56 'HTTP/1.1 101 Web Socket Protocol Handshake\r\n'
65 'HTTP/1.1 101 Web Socket Protocol Handshake\r\n'
85 'HTTP/1.1 101 Web Socket Protocol Handshake\r\n'
94 'HTTP/1.1 101 Web Socket Protocol Handshake\r\n'
113 'HTTP/1.1 101 Web Socket Protocol Handshake\r\n'
400 handshaker = handshake.Handshaker(request,
414 handshaker = handshake.Handshaker(request
    [all...]
test_handshake_hybi00.py 33 """Tests for handshake.hybi00 module."""
40 from mod_pywebsocket.handshake._base import HandshakeException
41 from mod_pywebsocket.handshake import hybi00 as handshake namespace
76 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
86 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
111 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
121 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
145 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
188 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n
    [all...]
test_handshake.py 33 """Tests for handshake module."""
44 from mod_pywebsocket.handshake._base import HandshakeException
45 from mod_pywebsocket.handshake._base import validate_subprotocol
49 """A unittest for handshake module."""
  /external/chromium-trace/trace-viewer/third_party/pywebsocket/src/mod_pywebsocket/
headerparserhandler.py 44 from mod_pywebsocket import handshake namespace
66 # PythonOption to specify to allow draft75 handshake.
209 handshake.do_handshake(
211 except handshake.VersionException, e:
216 except handshake.HandshakeException, e:
217 # Handshake for ws/wss failed.
225 except handshake.AbortedByUserException, e:
234 # Unknown exceptions before handshake mean Apache must handle its
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/
ASTDbg.stg 58 proxy.handshake();
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/
ASTDbg.stg 56 proxy.handshake()
  /external/chromium/net/socket/
socks5_client_socket.cc 155 // if the SOCKS handshake is complete.
166 // SOCKS handshake is complete.
343 int SOCKS5ClientSocket::BuildHandshakeWriteBuffer(std::string* handshake)
345 DCHECK(handshake->empty());
347 handshake->push_back(kSOCKS5Version);
348 handshake->push_back(kTunnelCommand); // Connect command
349 handshake->push_back(kNullByte); // Reserved null
351 handshake->push_back(kEndPointDomain); // The type of the address.
356 handshake->push_back(static_cast<unsigned char>(
358 handshake->append(host_request_info_.hostname())
    [all...]
socks5_client_socket.h 28 // This ClientSocket is used to setup a SOCKSv5 handshake with a socks proxy.
53 // Does the SOCKS handshake and completes the protocol.
120 // Writes the SOCKS handshake buffer into |handshake|
122 int BuildHandshakeWriteBuffer(std::string* handshake) const;
135 // SOCKS handshake data. The length contains the expected size to
139 // While writing, this buffer stores the complete write handshake data.
140 // While reading, it stores the handshake information received so far.
143 // This becomes true when the SOCKS handshake has completed and the
147 // These contain the bytes sent / received by the SOCKS handshake
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
NativeCryptoTest.java 669 public static Future<TestSSLHandshakeCallbacks> handshake(final ServerSocket listener, method in class:NativeCryptoTest
689 + " handshake"
702 + " handshake"
749 Future<TestSSLHandshakeCallbacks> client = handshake(listener, 0, true, cHooks, null);
750 Future<TestSSLHandshakeCallbacks> server = handshake(listener, 0, false, sHooks, null);
785 Future<TestSSLHandshakeCallbacks> client = handshake(listener, 0, true, cHooks, null);
786 Future<TestSSLHandshakeCallbacks> server = handshake(listener, 0, false, sHooks, null);
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
ASTDbg.stg 63 [proxy handshake];

Completed in 437 milliseconds

1 2 3