2 * Copyright (C) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
3 * Helsinki University of Technology, Finland.
5 * Copyright (C) 2005 - 2007 The AROS Dev Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23 #ifndef API_APICALLS_H
24 #define API_APICALLS_H
26 typedef VOID (* f_void
)(APTR args
, ...);
31 #include <exec/types.h>
35 #include <sys/types.h>
45 #include <netinet/in.h>
49 #include <api/amiga_api.h>
52 extern LONG
__CloseSocket(LONG
, struct SocketBase
*);
53 extern LONG
__connect(LONG
, const struct sockaddr
*, LONG
, struct SocketBase
*);
54 extern LONG
__recv(LONG
, char *, LONG
, LONG
, struct SocketBase
*);
55 extern LONG
__send(LONG
, const char *, LONG
, LONG
, struct SocketBase
*);
56 extern LONG
__sendto(LONG
, const char *, LONG
, LONG
, struct sockaddr
*, LONG
, struct SocketBase
*);
57 extern LONG
__socket(LONG
, LONG
, LONG
, struct SocketBase
*);
58 extern LONG
__IoctlSocket(LONG fdes
, ULONG cmd
, caddr_t data
, struct SocketBase
*libPtr
);
59 extern LONG
__WaitSelect(ULONG
, fd_set
*, fd_set
*, fd_set
*, struct timeval
*, ULONG
*, struct SocketBase
*);
60 extern struct hostent
* __gethostbyaddr(UBYTE
*, int, int, struct SocketBase
*);
61 extern LONG
__gethostname(STRPTR
, LONG
, struct SocketBase
*);
62 extern LONG
__SetErrnoPtr(VOID
*, UBYTE
, struct SocketBase
*);
63 extern LONG
__inet_aton(CONST_STRPTR cp
, struct in_addr
* addr
);
64 extern char * __Inet_NtoA(ULONG
, struct SocketBase
*);
65 #define __inet_ntoa __Inet_NtoA
66 extern REGARGFUN
void SetSysLogPort(void);
67 extern REGARGFUN
void endndbent(struct SocketBase
*);
69 #endif /* API_APICALLS_H */