Build the socket library and client-local port configuration for redirecting traffic to the offline service. Accept HTTPS and the existing matching and HTTP protocols on the same port. Route requests by the original host.
10 lines
294 B
C
10 lines
294 B
C
/* Settings (wto_ws.cfg) and the run log (wto_ws.log) next to the DLL. */
|
|
#pragma once
|
|
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
|
|
void config_load(HMODULE self);
|
|
void log_line(const char *format, ...);
|
|
void describe_address(const struct sockaddr *name, int length, char *text, size_t size);
|