2019-05-01 22:22:22 +02:00
|
|
|
#ifndef IRSSI_IRC_PROXY_PROXY_H
|
|
|
|
|
#define IRSSI_IRC_PROXY_PROXY_H
|
2008-11-02 12:13:36 +00:00
|
|
|
|
2019-05-01 16:33:47 +02:00
|
|
|
#include <irssi/src/common.h>
|
2008-11-02 12:13:36 +00:00
|
|
|
|
2019-05-01 16:33:47 +02:00
|
|
|
#include <irssi/src/core/network.h>
|
|
|
|
|
#include <irssi/src/irc/core/irc.h>
|
|
|
|
|
#include <irssi/src/irc/core/irc-servers.h>
|
2008-11-02 12:13:36 +00:00
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
int port;
|
2016-02-24 19:00:31 +01:00
|
|
|
char *port_or_path;
|
2008-11-02 12:13:36 +00:00
|
|
|
char *ircnet;
|
|
|
|
|
|
|
|
|
|
int tag;
|
|
|
|
|
GIOChannel *handle;
|
|
|
|
|
|
|
|
|
|
GSList *clients;
|
2016-02-24 19:00:31 +01:00
|
|
|
|
2008-11-02 12:13:36 +00:00
|
|
|
} LISTEN_REC;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2016-02-24 19:00:31 +01:00
|
|
|
char *nick, *addr;
|
2008-11-02 12:13:36 +00:00
|
|
|
NET_SENDBUF_REC *handle;
|
|
|
|
|
int recv_tag;
|
|
|
|
|
char *proxy_address;
|
|
|
|
|
LISTEN_REC *listen;
|
|
|
|
|
IRC_SERVER_REC *server;
|
|
|
|
|
unsigned int pass_sent:1;
|
|
|
|
|
unsigned int user_sent:1;
|
|
|
|
|
unsigned int connected:1;
|
|
|
|
|
unsigned int want_ctcp:1;
|
2016-02-17 23:06:51 +01:00
|
|
|
unsigned int multiplex:1;
|
2008-11-02 12:13:36 +00:00
|
|
|
} CLIENT_REC;
|
|
|
|
|
|
|
|
|
|
#endif
|