{{+bindTo:partials.standard_nacl_api}}

ppb_websocket.h File Reference

{{- dummy div to appease doxygen -}}
Include dependency graph for ppb_websocket.h:

Data Structures

struct  PPB_WebSocket
 The PPB_WebSocket interface provides bi-directional, full-duplex, communications over a single TCP socket. More...

Defines

#define PPB_WEBSOCKET_INTERFACE   "PPB_WebSocket;1.0"
#define PPB_WEBSOCKET_INTERFACE   PPB_WEBSOCKET_INTERFACE

Typedefs

typedef struct PPB_WebSocket PPB_WebSocket

Enumerations

enum  PP_WebSocketReadyState {
  PP_WEBSOCKETREADYSTATE_INVALID = -1, PP_WEBSOCKETREADYSTATE_CONNECTING = 0, PP_WEBSOCKETREADYSTATE_OPEN = 1, PP_WEBSOCKETREADYSTATE_CLOSING = 2,
  PP_WEBSOCKETREADYSTATE_CLOSED = 3
}
enum  PP_WebSocketCloseCode {
  PP_WEBSOCKETSTATUSCODE_NOT_SPECIFIED = 1005, PP_WEBSOCKETSTATUSCODE_NORMAL_CLOSURE = 1000, PP_WEBSOCKETSTATUSCODE_GOING_AWAY = 1001, PP_WEBSOCKETSTATUSCODE_PROTOCOL_ERROR = 1002,
  PP_WEBSOCKETSTATUSCODE_UNSUPPORTED_DATA = 1003, PP_WEBSOCKETSTATUSCODE_NO_STATUS_RECEIVED = 1005, PP_WEBSOCKETSTATUSCODE_ABNORMAL_CLOSURE = 1006, PP_WEBSOCKETSTATUSCODE_INVALID_FRAME_PAYLOAD_DATA = 1007,
  PP_WEBSOCKETSTATUSCODE_POLICY_VIOLATION = 1008, PP_WEBSOCKETSTATUSCODE_MESSAGE_TOO_BIG = 1009, PP_WEBSOCKETSTATUSCODE_MANDATORY_EXTENSION = 1010, PP_WEBSOCKETSTATUSCODE_INTERNAL_SERVER_ERROR = 1011,
  PP_WEBSOCKETSTATUSCODE_TLS_HANDSHAKE = 1015, PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MIN = 3000, PP_WEBSOCKETSTATUSCODE_USER_REGISTERED_MAX = 3999, PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MIN = 4000,
  PP_WEBSOCKETSTATUSCODE_USER_PRIVATE_MAX = 4999
}

Variables

 PP_WebSocketReadyState
 PP_WebSocketCloseCode

Detailed Description

This file defines the PPB_WebSocket interface providing bi-directional, full-duplex, communications over a single TCP socket.


Define Documentation

#define PPB_WEBSOCKET_INTERFACE   "PPB_WebSocket;1.0"
{{/partials.standard_nacl_api}}