dc49af3c59
For now there are two methods: - `NETWORK:IsUrlAllowed()`: Check whether access to a certain URL is allowed. - `NETWORK:HttpRequest()`: Perform an HTTP request. By default access to the network is disabled for all target hosts. It can be enabled by setting `HttpEnable=1` in the preferences. Individual hosts have to be added to `HttpAllowHosts` as a comma separated list to allow access. See included docs for more details on usage.
31 lines
884 B
Bash
31 lines
884 B
Bash
#!/bin/sh
|
|
#
|
|
# Author: Benjamin Sergeant
|
|
# Copyright (c) 2017-2018 Machine Zone, Inc. All rights reserved.
|
|
#
|
|
|
|
# 'manual' way of building. You can also use cmake.
|
|
|
|
g++ --std=c++11 \
|
|
-DIXWEBSOCKET_USE_TLS \
|
|
-g \
|
|
../ixwebsocket/IXEventFd.cpp \
|
|
../ixwebsocket/IXSocket.cpp \
|
|
../ixwebsocket/IXSetThreadName.cpp \
|
|
../ixwebsocket/IXWebSocketTransport.cpp \
|
|
../ixwebsocket/IXWebSocket.cpp \
|
|
../ixwebsocket/IXWebSocketServer.cpp \
|
|
../ixwebsocket/IXDNSLookup.cpp \
|
|
../ixwebsocket/IXSocketConnect.cpp \
|
|
../ixwebsocket/IXSocketOpenSSL.cpp \
|
|
../ixwebsocket/IXWebSocketPerMessageDeflate.cpp \
|
|
../ixwebsocket/IXWebSocketPerMessageDeflateOptions.cpp \
|
|
-I ../.. \
|
|
-I Catch2/single_include \
|
|
test_runner.cpp \
|
|
cmd_websocket_chat.cpp \
|
|
IXTest.cpp \
|
|
msgpack11.cpp \
|
|
-o ixwebsocket_unittest \
|
|
-lcrypto -lssl -lz -lpthread
|