embedded help
This commit is contained in:
parent
945c692227
commit
7ff12a36b9
@ -14,9 +14,10 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
if (argc != 3)
|
if (argc != 3)
|
||||||
{
|
{
|
||||||
std::cerr << "Usage: httpd <port> <host>" << std::endl;
|
std::cerr << "Usage: " << argv[0]
|
||||||
std::cerr << " ./a.out 9090 127.0.0.1" << std::endl;
|
<< " <port> <host>" << std::endl;
|
||||||
std::cerr << " ./a.out 9090 0.0.0.0" << std::endl;
|
std::cerr << " " << argv[0] << " 9090 127.0.0.1" << std::endl;
|
||||||
|
std::cerr << " " << argv[0] << " 9090 0.0.0.0" << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
makefile
9
makefile
@ -189,10 +189,11 @@ httpd:
|
|||||||
ixwebsocket/IXConnectionState.cpp \
|
ixwebsocket/IXConnectionState.cpp \
|
||||||
ixwebsocket/IXUrlParser.cpp \
|
ixwebsocket/IXUrlParser.cpp \
|
||||||
ixwebsocket/IXSelectInterrupt.cpp \
|
ixwebsocket/IXSelectInterrupt.cpp \
|
||||||
ixwebsocket/apple/IXSetThreadName_apple.cpp -lz
|
ixwebsocket/apple/IXSetThreadName_apple.cpp \
|
||||||
|
-lz
|
||||||
|
|
||||||
httpd_linux:
|
httpd_linux:
|
||||||
g++ --std=c++11 -o /usr/local/bin/ixhttpd httpd.cpp -Iixwebsocket \
|
g++ --std=c++11 -o ixhttpd httpd.cpp -Iixwebsocket \
|
||||||
ixwebsocket/IXSelectInterruptFactory.cpp \
|
ixwebsocket/IXSelectInterruptFactory.cpp \
|
||||||
ixwebsocket/IXCancellationRequest.cpp \
|
ixwebsocket/IXCancellationRequest.cpp \
|
||||||
ixwebsocket/IXSocketTLSOptions.cpp \
|
ixwebsocket/IXSocketTLSOptions.cpp \
|
||||||
@ -211,7 +212,9 @@ httpd_linux:
|
|||||||
ixwebsocket/IXConnectionState.cpp \
|
ixwebsocket/IXConnectionState.cpp \
|
||||||
ixwebsocket/IXUrlParser.cpp \
|
ixwebsocket/IXUrlParser.cpp \
|
||||||
ixwebsocket/IXSelectInterrupt.cpp \
|
ixwebsocket/IXSelectInterrupt.cpp \
|
||||||
ixwebsocket/linux/IXSetThreadName_linux.cpp -lz -lpthread
|
ixwebsocket/linux/IXSetThreadName_linux.cpp \
|
||||||
|
-lz -lpthread
|
||||||
|
cp -f ixhttpd /usr/local/bin
|
||||||
|
|
||||||
# For the fork that is configured with appveyor
|
# For the fork that is configured with appveyor
|
||||||
rebase_upstream:
|
rebase_upstream:
|
||||||
|
Loading…
Reference in New Issue
Block a user