15 lines
535 B
C
15 lines
535 B
C
#ifndef PCARELAY_H
|
|
#define PCARELAY_H
|
|
|
|
/* Start the transport switch thread: obfuscator -> 127.0.0.1:local_port -> host via UDP or TCP. */
|
|
int pcarelay_start(int local_port, const char *host, int udp_port, int tcp_port);
|
|
void pcarelay_use_tcp(int on);
|
|
int pcarelay_is_tcp(void);
|
|
/* Bytes received back from the server on any path (auto-detects a dead UDP). */
|
|
unsigned long long pcarelay_rx_bytes(void);
|
|
|
|
/* wg-obfuscator compiled in with -Dmain=wgobf_main (one instance per process). */
|
|
int wgobf_main(int argc, char **argv);
|
|
|
|
#endif
|