Added state and flags to spdylay_stream
This commit is contained in:
parent
5ececcd8e7
commit
fa549aa3a7
|
@ -27,6 +27,7 @@
|
|||
void spdylay_stream_init(spdylay_stream *stream, int32_t stream_id)
|
||||
{
|
||||
stream->stream_id = stream_id;
|
||||
stream->state = SPDYLAY_STREAM_OPENING;
|
||||
}
|
||||
|
||||
void spdylay_stream_free(spdylay_stream *stream)
|
||||
|
|
|
@ -31,8 +31,17 @@
|
|||
|
||||
#include <spdylay/spdylay.h>
|
||||
|
||||
typedef enum {
|
||||
SPDYLAY_STREAM_OPENING,
|
||||
SPDYLAY_STREAM_OPENED,
|
||||
SPDYLAY_STREAM_CLOSING
|
||||
} spdylay_stream_state;
|
||||
|
||||
typedef struct {
|
||||
int32_t stream_id;
|
||||
spdylay_stream_state state;
|
||||
/* Use same value in frame */
|
||||
uint8_t flags;
|
||||
} spdylay_stream;
|
||||
|
||||
void spdylay_stream_init(spdylay_stream *stream, int32_t stream_id);
|
||||
|
|
Loading…
Reference in New Issue