21 lines
356 B
C
21 lines
356 B
C
#ifndef PROXY_H
|
|
#define PROXY_H
|
|
|
|
#include <signal.h>
|
|
#include <netinet/tcp.h>
|
|
|
|
/**
|
|
* Starts the proxy server on the specified port
|
|
*
|
|
* @param port The port to listen on
|
|
* @return 0 on success, non-zero on failure
|
|
*/
|
|
int start_proxy_server(int port);
|
|
|
|
/**
|
|
* Signal handler for graceful termination
|
|
*/
|
|
void handle_signal(int sig);
|
|
|
|
#endif // PROXY_H
|