1
/*! \file msdos/socketimpl.h \n
2
* \author Marco van den Heuvel\n
3
* \brief Abstraction from network sockets.
5
* socketimpl.h - Abstraction from network sockets. DOS implementation.
8
* Marco van den Heuvel <blackystardust68@yahoo.com>
10
* based on code from network.c written by
11
* Andreas Matthies <andreas.matthies@gmx.net>
13
* This file is part of VICE, the Versatile Commodore Emulator.
14
* See README for copyright notice.
16
* This program is free software; you can redistribute it and/or modify
17
* it under the terms of the GNU General Public License as published by
18
* the Free Software Foundation; either version 2 of the License, or
19
* (at your option) any later version.
21
* This program is distributed in the hope that it will be useful,
22
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
* GNU General Public License for more details.
26
* You should have received a copy of the GNU General Public License
27
* along with this program; if not, write to the Free Software
28
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
33
#ifndef VICE_SOCKETIMPL_H
34
#define VICE_SOCKETIMPL_H
38
#if !defined(HAVE_GETDTABLESIZE) && defined(HAVE_GETRLIMIT)
39
#include <sys/resource.h>
42
#include <sys/types.h>
43
#include <sys/socket.h>
44
#include <netinet/in.h>
45
#include <arpa/inet.h>
48
typedef unsigned int SOCKET;
49
typedef struct timeval TIMEVAL;
51
#ifndef INVALID_SOCKET
52
#define INVALID_SOCKET (SOCKET)(~0)
55
#define SOCKET_IS_INVALID(_x) ((_x) < 0)
57
#define in_addr_t unsigned long
59
#endif /* #ifdef HAVE_NETWORK */
61
#endif /* #ifndef VICE_SOCKETIMPL_H */