/[svn]/hopm/trunk/src/irc.h
ViewVC logotype

Contents of /hopm/trunk/src/irc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5175 - (show annotations)
Fri Dec 26 21:09:41 2014 UTC (5 years, 8 months ago) by michael
File MIME type: text/x-csrc
File size: 645 byte(s)
- Removed now unused inet.c and inet.h

1 #ifndef IRC_H
2 #define IRC_H
3
4 #include <sys/types.h>
5 #include <sys/socket.h>
6 #include <netinet/in.h>
7 #include <arpa/inet.h>
8
9 #define MSGLENMAX 512 + 1
10
11
12 struct bopm_sockaddr
13 {
14 struct sockaddr_in sa4;
15 };
16
17 struct bopm_ircaddr
18 {
19 struct in_addr in4;
20 };
21
22 struct UserInfo
23 {
24 char *irc_nick;
25 char *irc_username;
26 char *irc_hostname;
27 };
28
29 typedef void (*irc_command) (char **, unsigned int, char *, struct UserInfo *);
30
31 struct CommandHash
32 {
33 const char *command;
34 irc_command handler;
35 };
36
37 extern void irc_send(const char *, ...);
38 extern void irc_send_channels(const char *, ...);
39 extern void irc_cycle(void);
40 extern void irc_timer(void);
41 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28