Home | History | Annotate | Download | only in microspdy

Lines Matching full:session

28 #include "session.h"
32 SPDYF_stream_new (struct SPDY_Session *session)
38 size_t buffer_pos = session->read_buffer_beginning;
42 if((session->read_buffer_offset - session->read_buffer_beginning) < 10)
48 frame = (struct SPDYF_Control_Frame *)session->frame_handler_cls;
51 memcpy(&stream_id, session->read_buffer + session->read_buffer_beginning, 4);
53 session->read_buffer_beginning += 4;
54 if(stream_id <= session->last_in_stream_id || 0==(stream_id % 2))
61 session->frame_handler = &SPDYF_handler_ignore_frame;
64 else if(session->is_goaway_sent)
68 session->frame_handler = &SPDYF_handler_ignore_frame;
72 //set highest stream id for session
73 session->last_in_stream_id = stream_id;
77 memcpy(&assoc_stream_id, session->read_buffer + session->read_buffer_beginning, 4);
79 session->read_buffer_beginning += 4;
83 priority = *(uint8_t *)(session->read_buffer + session->read_buffer_beginning) >> 5;
84 session->read_buffer_beginning++;
87 slot = *(uint8_t *)(session->read_buffer + session->read_buffer_beginning);
88 session->read_buffer_beginning++;
94 session->read_buffer_beginning = buffer_pos;
98 stream->session = session;
109 //put the stream to the list of streams for the session
110 DLL_insert(session->streams_head, session->streams_tail, stream);
159 SPDYF_stream_find(uint32_t stream_id, struct SPDY_Session * session)
161 struct SPDYF_Stream * stream = session->streams_head;