Added doc for spdylay_error values.
This commit is contained in:
parent
e2092966ef
commit
643238813d
|
@ -44,13 +44,25 @@ typedef struct spdylay_session spdylay_session;
|
||||||
#define SPDYLAY_PROTO_SPDY3 3
|
#define SPDYLAY_PROTO_SPDY3 3
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
/* Invalid argument passed. */
|
||||||
SPDYLAY_ERR_INVALID_ARGUMENT = -501,
|
SPDYLAY_ERR_INVALID_ARGUMENT = -501,
|
||||||
|
/* Zlib error. */
|
||||||
SPDYLAY_ERR_ZLIB = -502,
|
SPDYLAY_ERR_ZLIB = -502,
|
||||||
|
/* The specified protocol version is not supported. */
|
||||||
SPDYLAY_ERR_UNSUPPORTED_VERSION = -503,
|
SPDYLAY_ERR_UNSUPPORTED_VERSION = -503,
|
||||||
|
/* Used as a return value from spdylay_send_callback and
|
||||||
|
spdylay_recv_callback to indicate that the operation would
|
||||||
|
block. */
|
||||||
SPDYLAY_ERR_WOULDBLOCK = -504,
|
SPDYLAY_ERR_WOULDBLOCK = -504,
|
||||||
|
/* General protocol error */
|
||||||
SPDYLAY_ERR_PROTO = -505,
|
SPDYLAY_ERR_PROTO = -505,
|
||||||
|
/* The frame is invalid. */
|
||||||
SPDYLAY_ERR_INVALID_FRAME = -506,
|
SPDYLAY_ERR_INVALID_FRAME = -506,
|
||||||
|
/* The peer performed a shutdown on the connection. */
|
||||||
SPDYLAY_ERR_EOF = -507,
|
SPDYLAY_ERR_EOF = -507,
|
||||||
|
/* Used as a return value from spdylay_data_source_read_callback to
|
||||||
|
indicate that data transfer is postponed. See
|
||||||
|
spdylay_data_source_read_callback for details. */
|
||||||
SPDYLAY_ERR_DEFERRED = -508,
|
SPDYLAY_ERR_DEFERRED = -508,
|
||||||
/* Stream ID has reached maximum value. Therefore no stream ID is
|
/* Stream ID has reached maximum value. Therefore no stream ID is
|
||||||
available. */
|
available. */
|
||||||
|
@ -79,7 +91,9 @@ typedef enum {
|
||||||
unexpected condition that it cannot process any further data
|
unexpected condition that it cannot process any further data
|
||||||
reliably (e.g., out of memory). */
|
reliably (e.g., out of memory). */
|
||||||
SPDYLAY_ERR_FATAL = -900,
|
SPDYLAY_ERR_FATAL = -900,
|
||||||
|
/* Out of memory. */
|
||||||
SPDYLAY_ERR_NOMEM = -901,
|
SPDYLAY_ERR_NOMEM = -901,
|
||||||
|
/* The user callback function failed. */
|
||||||
SPDYLAY_ERR_CALLBACK_FAILURE = -902,
|
SPDYLAY_ERR_CALLBACK_FAILURE = -902,
|
||||||
} spdylay_error;
|
} spdylay_error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue