int stage
Packet buffer receiving stage.
Definition: tcp_proxy.h:66
ev_io w
TCP Client watcher.
Definition: tcp_proxy.h:78
int fd
TCP Server fd or 0 if not started.
Definition: tcp_proxy.h:97
ksnTCPProxyPacketData packet
Packet buffer.
Definition: tcp_proxy.h:80
Resend packet to UDP Proxy client/server.
Definition: tcp_proxy.h:36
ksnTCPProxyClass map data
Definition: tcp_proxy.h:73
ksnTCPProxyClass * ksnTCPProxyInit(void *ke)
Initialize TCP Proxy module.
Definition: tcp_proxy.c:76
ksnTCPProxyHeader * header
Packet header.
Definition: tcp_proxy.h:63
size_t length
Received package length.
Definition: tcp_proxy.h:64
struct ksnTCPProxyClass ksnTCPProxyClass
TCP Proxy class data.
int ksnTCPProxyClientConnect(ksnTCPProxyClass *tp)
Connect to TCP Proxy server.
Definition: tcp_proxy.c:473
struct ksnTCPProxyPacketData ksnTCPProxyPacketData
TCP Proxy packet data structure.
size_t ptr
Pointer to data end in packet buffer.
Definition: tcp_proxy.h:65
struct ksnTCPProxyData ksnTCPProxyData
ksnTCPProxyClass map data
int fd_client
TCP Client fd or 0 if not started (or not connected)
Definition: tcp_proxy.h:92
int udp_proxy_port
UDP Proxy port number.
Definition: tcp_proxy.h:76
Wait for end of the packet.
Definition: tcp_proxy.h:26
ksnTCPProxyCommand
TCP Proxy protocol command.
Definition: tcp_proxy.h:34
TCP Proxy packet data structure.
Definition: tcp_proxy.h:60
char buffer[KSN_BUFFER_DB_SIZE]
Packet buffer.
Definition: tcp_proxy.h:62
PblMap * map
Hash Map to store tcp proxy client connections.
Definition: tcp_proxy.h:98
ksnTCPProxyBufferStage
TCP Proxy buffer stage.
Definition: tcp_proxy.h:23
#define KSN_BUFFER_DB_SIZE
File: conf.h Author: Kirill Scherba.
Definition: conf.h:14
ksnTCPProxyPacketData packet
TCP Client Packet buffer.
Definition: tcp_proxy.h:94
void * ke
Pointer to ksnetEvMgrClass.
Definition: tcp_proxy.h:89
void ksnTCPProxyDestroy(ksnTCPProxyClass *tp)
Destroy TCP Proxy module.
Definition: tcp_proxy.c:99
ev_io w_client
TCP Client watcher.
Definition: tcp_proxy.h:93
int tcp_proxy_fd
TCP Proxy file descriptor.
Definition: tcp_proxy.h:75
struct ksnTCPProxyHeader ksnTCPProxyHeader
TCP Proxy packet(message) header structure.
TCP Proxy class data.
Definition: tcp_proxy.h:87
ev_io w_udp
UDP Client watcher.
Definition: tcp_proxy.h:79
Process the packet in buffer.
Definition: tcp_proxy.h:27
Wait for begibbibg of the packet.
Definition: tcp_proxy.h:25
int udp_proxy_fd
UDP Proxy file descriptor.
Definition: tcp_proxy.h:77