Skip to content
Newer
Older
100644 28 lines (22 sloc) 643 Bytes
9f0cff1 Initial commit.
Sound and Fury authored Jul 26, 2010
1 /*
2 quIRC - simple terminal-based IRC client
3 Copyright (C) 2010 Edward Cree
4
5 See quirc.c for license information
6 irc: networking functions
7 */
8
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <stdbool.h>
12 #include <string.h>
13 #include <unistd.h>
14 #include <sys/socket.h>
15 #include <sys/utsname.h>
16 #include <netdb.h>
17 #include <arpa/inet.h>
18 #include <netinet/in.h>
19
20 // helper fn macros
21 #define max(a,b) ((a)>(b)?(a):(b))
22 #define min(a,b) ((a)<(b)?(a):(b))
23
24 int irc_connect(char *server, char *portno, char *nick, char *username, char *fullname, fd_set *master, int *fdmax);
25 int irc_tx(int fd, char * packet);
26 int irc_rx(int fd, char ** data);
27
Something went wrong with that request. Please try again.