Back to index

opendkim  2.6.4
ar-socket.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2011, The OpenDKIM Project.  All rights reserved.
00003 */
00004 
00005 #ifndef _AR_SOCKET_H_
00006 #define _AR_SOCKET_H_
00007 
00008 #include "build-config.h"
00009 
00010 /* system includes */
00011 #include <sys/types.h>
00012 #include <sys/time.h>
00013 
00014 /* data types */
00015 struct ar_socket_set;
00016 typedef struct ar_socket_set * AR_SOCKET_SET;
00017 
00018 /* event types */
00019 #define       AR_SOCKET_EVENT_READ        0x01
00020 #define       AR_SOCKET_EVENT_WRITE              0x02
00021 #define       AR_SOCKET_EVENT_EXCEPTION   0x04
00022 
00023 /* prototypes */
00024 extern int ar_socket_add(AR_SOCKET_SET, int, unsigned int);
00025 extern int ar_socket_check(AR_SOCKET_SET, int, unsigned int);
00026 extern void ar_socket_free(AR_SOCKET_SET);
00027 extern AR_SOCKET_SET ar_socket_init(unsigned int);
00028 extern void ar_socket_reset(AR_SOCKET_SET);
00029 extern int ar_socket_wait(AR_SOCKET_SET, int);
00030 
00031 #endif /* ! _AR_SOCKET_H_ */