Node.js
v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
|
#include "inspector_socket.h"
#include "util.h"
#include "util-inl.h"
#include "base64.h"
#include "openssl/sha.h"
#include <string.h>
#include <vector>
Go to the source code of this file.
Data Structures | |
struct | WriteRequest |
Namespaces | |
node | |
node::inspector | |
Macros | |
#define | NODE_WANT_INTERNALS 1 |
#define | ACCEPT_KEY_LENGTH base64_encoded_size(20) |
#define | BUFFER_GROWTH_CHUNK_SIZE 1024 |
#define | DUMP_READS 0 |
#define | DUMP_WRITES 0 |
Typedefs | |
typedef int | OpCode |
Enumerations | |
enum | ws_decode_result { FRAME_OK, FRAME_INCOMPLETE, FRAME_CLOSE, FRAME_ERROR } |
Functions | |
int | inspector_read_start (InspectorSocket *inspector, uv_alloc_cb alloc_cb, uv_read_cb read_cb) |
void | inspector_read_stop (InspectorSocket *inspector) |
int | inspector_accept (uv_stream_t *server, InspectorSocket *socket, handshake_cb callback) |
void | inspector_write (InspectorSocket *inspector, const char *data, size_t len) |
void | inspector_close (InspectorSocket *inspector, inspector_cb callback) |
bool | inspector_is_active (const InspectorSocket *inspector) |
Variables | |
const OpCode | kOpCodeContinuation = 0x0 |
const OpCode | kOpCodeText = 0x1 |
const OpCode | kOpCodeBinary = 0x2 |
const OpCode | kOpCodeClose = 0x8 |
const OpCode | kOpCodePing = 0x9 |
const OpCode | kOpCodePong = 0xA |
const unsigned char | kFinalBit = 0x80 |
const unsigned char | kReserved1Bit = 0x40 |
const unsigned char | kReserved2Bit = 0x20 |
const unsigned char | kReserved3Bit = 0x10 |
const unsigned char | kOpCodeMask = 0xF |
const unsigned char | kMaskBit = 0x80 |
const unsigned char | kPayloadLengthMask = 0x7F |
const size_t | kMaxSingleBytePayloadLength = 125 |
const size_t | kTwoBytePayloadLengthField = 126 |
const size_t | kEightBytePayloadLengthField = 127 |
const size_t | kMaskingKeyWidthInBytes = 4 |
#define ACCEPT_KEY_LENGTH base64_encoded_size(20) |
Definition at line 13 of file inspector_socket.cc.
Referenced by node::inspector::inspector_read_stop().
#define BUFFER_GROWTH_CHUNK_SIZE 1024 |
Definition at line 14 of file inspector_socket.cc.
#define DUMP_READS 0 |
Definition at line 16 of file inspector_socket.cc.
#define DUMP_WRITES 0 |
Definition at line 17 of file inspector_socket.cc.
#define NODE_WANT_INTERNALS 1 |
Definition at line 5 of file inspector_socket.cc.