22 lines
411 B
C
22 lines
411 B
C
#ifndef OMNI_SERVER_UDP_RELAY_H
|
|
#define OMNI_SERVER_UDP_RELAY_H
|
|
|
|
#include "omni_common.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct udp_relay udp_relay_t;
|
|
|
|
udp_relay_t *udp_relay_open(const char *listen_addr, const char *upstream_addr);
|
|
int udp_relay_serve(udp_relay_t *relay);
|
|
int udp_relay_close(udp_relay_t *relay);
|
|
void udp_relay_free(udp_relay_t *relay);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|