Changeset d179fd90 for irc.h


Ignore:
Timestamp:
2017-04-06T20:25:08Z (7 years ago)
Author:
Wilmer van der Gaast <github@…>
Branches:
master
Children:
0156c42
Parents:
60141cf
git-author:
Wilmer van der Gaast <wilmer@…> (03-04-17 20:55:50)
git-committer:
Wilmer van der Gaast <github@…> (06-04-17 20:25:08)
Message:

Add PROXY command. Not actually an IRC protocol command, it's a HAProxy
trick supported by stunnel to indicate where the connection originally
came from. Looks a little better on public servers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    r60141cf rd179fd90  
    2626#ifndef _IRC_H
    2727#define _IRC_H
     28
     29#include <sys/socket.h>
    2830
    2931#define IRC_MAX_LINE 512
     
    271273
    272274irc_t *irc_new(int fd);
     275void irc_set_hosts(irc_t *irc, const struct sockaddr *remote_addr, const socklen_t remote_addrlen);
    273276void irc_abort(irc_t *irc, int immed, char *format, ...) G_GNUC_PRINTF(3, 4);
    274277void irc_free(irc_t *irc);
Note: See TracChangeset for help on using the changeset viewer.