Mercurial > pidgin.yaz
comparison src/protocols/icq/socketmanager.h @ 2392:9965c0bbdb7c
[gaim-migrate @ 2405]
no socklen_t!
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 29 Sep 2001 02:08:00 +0000 |
parents | 424a40f12a6c |
children | 5e7ffea3f76a |
comparison
equal
deleted
inserted
replaced
2391:abebece90bd7 | 2392:9965c0bbdb7c |
---|---|
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | 2 |
3 /* | 3 /* |
4 * $Id: socketmanager.h 2096 2001-07-31 01:00:39Z warmenhoven $ | 4 * $Id: socketmanager.h 2405 2001-09-29 02:08:00Z warmenhoven $ |
5 * | 5 * |
6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and | 6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and |
7 * Bill Soudan <soudan@kde.org> | 7 * Bill Soudan <soudan@kde.org> |
8 * | 8 * |
9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
30 #endif | 30 #endif |
31 | 31 |
32 #include <sys/types.h> | 32 #include <sys/types.h> |
33 | 33 |
34 #ifndef _WIN32 | 34 #ifndef _WIN32 |
35 #ifdef NEED_SOCKLEN_T | |
36 typedef unsigned int socklen_t; | |
37 #endif | |
38 #include <sys/socket.h> | 35 #include <sys/socket.h> |
39 #else | 36 #else |
40 #include <winsock.h> | 37 #include <winsock.h> |
41 typedef unsigned __int32 socklen_t; | |
42 #endif | 38 #endif |
43 | 39 |
44 #include "icq.h" | 40 #include "icq.h" |
45 #include "list.h" | 41 #include "list.h" |
46 | 42 |
54 icq_SocketHandler handlers[ICQ_SOCKET_MAX]; | 50 icq_SocketHandler handlers[ICQ_SOCKET_MAX]; |
55 void *data[ICQ_SOCKET_MAX]; | 51 void *data[ICQ_SOCKET_MAX]; |
56 }; | 52 }; |
57 | 53 |
58 int icq_SocketNew(int domain, int type, int protocol); | 54 int icq_SocketNew(int domain, int type, int protocol); |
59 int icq_SocketAccept(int listens, struct sockaddr *addr, socklen_t *addrlen); | 55 int icq_SocketAccept(int listens, struct sockaddr *addr, int *addrlen); |
60 void icq_SocketAlloc(int socket_fd); | 56 void icq_SocketAlloc(int socket_fd); |
61 int icq_SocketDelete(int socket_fd); | 57 int icq_SocketDelete(int socket_fd); |
62 void icq_SocketSetHandler(int socket_fd, int type, icq_SocketHandler handler, | 58 void icq_SocketSetHandler(int socket_fd, int type, icq_SocketHandler handler, |
63 void *data); | 59 void *data); |
64 void icq_SocketReady(icq_Socket *s, int type); | 60 void icq_SocketReady(icq_Socket *s, int type); |