Commit Graph

125 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa fa312caa06 Check cunit and openssl in configure and set substitute variables. 2012-02-08 23:11:06 +09:00
Tatsuhiro Tsujikawa 2c5c60b752 Updated according to spdylay_select_next_protocol change 2012-02-08 21:52:44 +09:00
Tatsuhiro Tsujikawa 6ac7433a5e Added -D option. Fixed segmentation fault when -d is used. Fixed memory leak. 2012-02-08 02:57:19 +09:00
Tatsuhiro Tsujikawa fd0e91b082 Set TCP_NODELAY in spdycat 2012-02-08 01:54:44 +09:00
Tatsuhiro Tsujikawa dfce262fe5 Added non-blocking SPDY server spdyd. It only handles static contents. 2012-02-08 01:54:13 +09:00
Tatsuhiro Tsujikawa 3bfe0553d1 Call both Spdylay::recv and Spdylay::send on either POLLIN or POLLOUT 2012-02-08 01:33:55 +09:00
Tatsuhiro Tsujikawa 7f41ec03bd Fixed the bug that port number in URI is not parsed properly. 2012-02-07 02:06:51 +09:00
Tatsuhiro Tsujikawa d0cd362852 Changed spdylay_select_next_protocol behaviour
It now always select "spdy/2" as a next protocol regardless whether or not
the server advertises it. The NPN draft allows this.
Returning integer version number is not flexible because the selected protcol
is just a string.
The function now returns 0 if the server advertised spdy/2, or -1.
2012-02-05 21:48:20 +09:00
Tatsuhiro Tsujikawa 1f72165549 Added stream_user_data arg to spdylay_submit_request() to identify stream ID later easily.
Specified stream_user_data_arg can be retrieved by
spdylay_session_get_stream_user_data() function. The application code can use
this function insde spdylay_on_ctrl_send_callback() and identify stream ID
for the request associated by the stream_user_data.
The sample usage is in examples/spdycat.cc.
2012-02-04 01:37:21 +09:00
Tatsuhiro Tsujikawa 876c33c562 Merge branch 'master' of https://github.com/sorced-jim/spdylay into sorced-jim-master
Conflicts:
	examples/spdylay_ssl.cc
	tests/Makefile.am
	tests/main.c

Changes:
        spdylay_select_next_protocol() returns -1 if it fails.
        Use cunit without pkg-config because debian does not provide .pc file.
        Some doc updates to suite my taste.
        Added spdylay_npn.h
2012-02-03 23:53:43 +09:00
Jim Morrison ea60bd8c6e Add an NPN callback helper that finds the correct version of spdy 2012-02-02 16:31:11 -08:00
Tatsuhiro Tsujikawa db498a7601 Prettify verbose output 2012-02-02 00:37:48 +09:00
Tatsuhiro Tsujikawa 45376c6b11 spdycat: Added host header field to SYN_STREAM. 2012-02-01 21:47:25 +09:00
Tatsuhiro Tsujikawa 42f8ef5f99 Added libcrypto to pkg-config args 2012-02-01 21:42:29 +09:00
Jim Morrison 40db6885b7 Automake-zie the examples directory 2012-01-31 11:10:09 -08:00
Tatsuhiro Tsujikawa 78cd59d1d0 Gather prerequisites of spdycat into $(SPDYCAT_OBJS) 2012-02-01 02:19:40 +09:00
Tatsuhiro Tsujikawa 0236d0d2df Print details for SETTINGS, RST_STREAM, HEADERS. 2012-02-01 01:16:35 +09:00
Tatsuhiro Tsujikawa 4e192493ab Use gettimeofday instead of clock_gettime and use poll instead of epoll for portability. 2012-01-31 22:04:51 +09:00
Tatsuhiro Tsujikawa d3a3dc5943 Added proper command-line option support using getopt_long.
Now -nvh option works.
2012-01-31 00:46:46 +09:00
Tatsuhiro Tsujikawa 641443f6c5 Added Makefile for examples 2012-01-30 00:35:33 +09:00
Tatsuhiro Tsujikawa 0b57f01009 Rewritten spdycl as spdycat. 2012-01-30 00:34:10 +09:00
Tatsuhiro Tsujikawa 5fdadc4806 Flush after printf(). Added user-agent. Add cond (want_read and want_write) to event-loop 2012-01-28 19:44:42 +09:00
Tatsuhiro Tsujikawa af4e977d6b Updated according to API changes 2012-01-28 04:30:23 +09:00
Tatsuhiro Tsujikawa b35f019811 Added callback functions for DATA frames. Fixed unpacking length field. 2012-01-28 03:54:53 +09:00
Tatsuhiro Tsujikawa 8eea63aa30 Added example.
This example program can connect to remote host given in command-line
via SSL and retrieves given path using SPDY protocol.
To build this program, OpenSSL + NPN support is required.
2012-01-27 01:32:05 +09:00