pyceo/src/net.h

25 lines
524 B
C
Raw Normal View History

2009-01-31 01:40:18 -05:00
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <gssapi/gssapi.h>
typedef struct sockaddr sa;
extern struct strbuf fqdn;
extern void setup_fqdn(void);
extern void free_fqdn(void);
2009-01-31 01:40:18 -05:00
enum {
MSG_AUTH = 0x8000000,
MSG_EXPLODE = 0x8000001,
};
#define EKERB -2
#define ELDAP -3
2009-07-29 09:34:55 -04:00
#define EHOME -4
2010-04-23 23:00:55 -04:00
#define EQUOTA -5
2009-01-31 01:40:18 -05:00
int ceo_receive_message(int sock, struct strbuf *msg, uint32_t *msgtype);
int ceo_send_message(int sock, void *msg, size_t len, uint32_t msgtype);