Start sketching out a new two-layer connection system:
Start sketching out a new two-layer connection system:

1) a "connection type" that can be a plain or encrypted socket, with
   read/write APIs
2) a "protocol type" that performs protocol-specific parsing and
   bucket stacking and protocol-specific callbacks to the app

This is merely a DRAFT for comments.

* serf.h;
  (serf_connection_type_t, serf_protocol_t, serf_protocol_type_t): new
    typedefs for the two layers
  (struct serf_connection_type_t, struct serf_protocol_type_t): public
    struct for defining types
  (serf_connection_switch_protocol): example for dynamically switching
    protocols on a connection (eg. HTTP -> SPDY)
  (serf_begin_response_t, serf_handler_t): new application callbacks
  (serf_http_protocol_create, serf_https_protocol_create): new
    examples for creating a specific protocol/connection pair
  (serf_http_request_create): example for queuing a new HTTP request

KyleSanderson/serf,pengdu/serf,zhengcq315/serf,SirJson/serf,zhupan/serf,lazysoez/serf,zhupan/serf,stoneCC/serf,pengdu/serf,SirJson/serf,lazysoez/serf,zhengcq315/serf,stoneCC/serf,alex1818/serf,yesoce/serf,soufianeEL/serf,SirJson/serf,google-code-export/serf,x-clone/serf,alex1818/serf,soufianeEL/serf,zhengcq315/serf,lazysoez/serf,yesoce/serf,stoneCC/serf,KyleSanderson/serf,x-clone/serf,google-code-export/serf,zhengcq315/serf,KyleSanderson/serf,zhupan/serf,google-code-export/serf,yesoce/serf,stoneCC/serf,SirJson/serf,pengdu/serf,soufianeEL/serf,soufianeEL/serf,alex1818/serf,yesoce/serf,KyleSanderson/serf,google-code-export/serf,alex1818/serf,lazysoez/serf,x-clone/serf,x-clone/serf,pengdu/serf,zhupan/serf