Split off implementation
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,5 +1,5 @@
|
||||
example_simple: example_simple.o fastcgi.o fastcgi_conn.o fastcgi_request.o stream_buffer.o buffer.o
|
||||
clang++ -std=gnu++2a -o example_simple example_simple.o fastcgi.o fastcgi_conn.o fastcgi_request.o stream_buffer.o buffer.o -lgflags -lglog -lpthread
|
||||
example_simple: example_simple.o fastcgi.o fastcgi_conn.o fastcgi_request.o fastcgi_parse.o stream_buffer.o buffer.o
|
||||
clang++ -std=gnu++2a -o example_simple example_simple.o fastcgi.o fastcgi_conn.o fastcgi_request.o fastcgi_parse.o stream_buffer.o buffer.o -lgflags -lglog -lpthread
|
||||
|
||||
clean:
|
||||
rm --force exmaple_simple *.o
|
||||
|
||||
7
fastcgi_parse.cpp
Normal file
7
fastcgi_parse.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "fastcgi_parse.h"
|
||||
|
||||
FastCGIHeader::FastCGIHeader(uint8_t type_in, uint16_t request_id, uint16_t content_length)
|
||||
: type(type_in) {
|
||||
SetRequestId(request_id);
|
||||
SetContentLength(content_length);
|
||||
}
|
||||
@@ -3,11 +3,7 @@
|
||||
#include <arpa/inet.h>
|
||||
|
||||
struct FastCGIHeader {
|
||||
FastCGIHeader(uint8_t type_in, uint16_t request_id, uint16_t content_length)
|
||||
: type(type_in) {
|
||||
SetRequestId(request_id);
|
||||
SetContentLength(content_length);
|
||||
}
|
||||
FastCGIHeader(uint8_t type_in, uint16_t request_id, uint16_t content_length);
|
||||
|
||||
uint8_t version = 1;
|
||||
uint8_t type;
|
||||
|
||||
Reference in New Issue
Block a user