36 #define SPDYF_BUFFER_SIZE 8192 42 #define SPDYF_INITIAL_WINDOW_SIZE 65536 50 #define SPDYF_NUM_SENT_FRAMES_AT_ONCE 10 70 #define SPDYF_PANIC(msg) \ 71 spdyf_panic (spdyf_panic_cls, __FILE__, __LINE__, msg) 80 #define SPDYF_ASSERT(expr, msg) \ 96 #define HTON24(n) (((((uint32_t)(n) & 0xFF)) << 16)\ 97 | (((uint32_t)(n) & 0xFF00))\ 98 | ((((uint32_t)(n) & 0xFF0000)) >> 16)) 111 #define NTOH24(n) (((((uint32_t)(n) & 0xFF)) << 16)\ 112 | (((uint32_t)(n) & 0xFF00))\ 113 | ((((uint32_t)(n) & 0xFF0000)) >> 16)) 126 #define NTOH31(n) (((((uint32_t)(n) & 0x7F)) << 24) | \ 127 ((((uint32_t)(n) & 0xFF00)) << 8) | \ 128 ((((uint32_t)(n) & 0xFF0000)) >> 8) | \ 129 ((((uint32_t)(n) & 0xFF000000)) >> 24)) 142 #define HTON31(n) (((((uint32_t)(n) & 0xFF)) << 24) | \ 143 ((((uint32_t)(n) & 0xFF00)) << 8) | \ 144 ((((uint32_t)(n) & 0xFF0000)) >> 8) | \ 145 ((((uint32_t)(n) & 0x7F000000)) >> 24)) 155 #define SPDYF_DEBUG(fmt, ...) do { \ 156 fprintf (stdout, "%s\n%u: ",__FILE__, __LINE__);\ 157 fprintf(stdout,fmt,##__VA_ARGS__);\ 158 fprintf(stdout,"\n");\ 159 fflush(stdout); } while (0) 168 #define SPDYF_PRINT_STREAM(strm, size) do { \ 170 for(___i=0;___i<size;___i++){\ 171 fprintf(stdout,"%x ",*((uint8_t *) strm + ___i));\ 174 fprintf(stdout,"\n");\ 183 #define SPDYF_SIGINT(msg) do { \ 184 fprintf(stdout,"%i : %s\n", __LINE__,__FILE__);\ 185 fprintf(stdout,msg);\ 186 fprintf(stdout,"\n");\ 188 raise(SIGINT); } while (0)
public interface to libmicrospdy
SPDY_PanicCallback spdyf_panic
unsigned long long SPDYF_monotonic_time(void)
void(* SPDY_PanicCallback)(void *cls, const char *file, unsigned int line, const char *reason)