~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/arch/msdos/socketimpl.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-11 18:30:16 UTC
  • mfrom: (1.1.8 upstream) (9.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100211183016-f6n8usn3tzp0u6dp
Tags: 2.2.dfsg-1
* New upstream release, C64 DTV is included so update package description
  and add it to the menu.
* Drop patch fixing build failure with gcc-4.4 , applied upstream.
* Fix some lintian problems and clean up debian/rules .

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*! \file msdos/socketimpl.h \n
 
2
 *  \author Marco van den Heuvel\n
 
3
 *  \brief  Abstraction from network sockets.
 
4
 *
 
5
 * socketimpl.h - Abstraction from network sockets. DOS implementation.
 
6
 *
 
7
 * Written by
 
8
 *  Marco van den Heuvel <blackystardust68@yahoo.com>
 
9
 *
 
10
 * based on code from network.c written by
 
11
 *  Andreas Matthies <andreas.matthies@gmx.net>
 
12
 *
 
13
 * This file is part of VICE, the Versatile Commodore Emulator.
 
14
 * See README for copyright notice.
 
15
 *
 
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.
 
20
 *
 
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.
 
25
 *
 
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
 
29
 *  02111-1307  USA.
 
30
 *
 
31
 */
 
32
 
 
33
#ifndef VICE_SOCKETIMPL_H
 
34
#define VICE_SOCKETIMPL_H
 
35
 
 
36
#ifdef HAVE_NETWORK
 
37
 
 
38
#if !defined(HAVE_GETDTABLESIZE) && defined(HAVE_GETRLIMIT)
 
39
#include <sys/resource.h>
 
40
#endif
 
41
 
 
42
#include <sys/types.h>
 
43
#include <sys/socket.h>
 
44
#include <netinet/in.h>
 
45
#include <arpa/inet.h>
 
46
#include <netdb.h>
 
47
 
 
48
typedef unsigned int SOCKET;
 
49
typedef struct timeval TIMEVAL;
 
50
 
 
51
#ifndef INVALID_SOCKET
 
52
#define INVALID_SOCKET (SOCKET)(~0)
 
53
#endif
 
54
 
 
55
#define SOCKET_IS_INVALID(_x) ((_x) < 0)
 
56
 
 
57
#define in_addr_t unsigned long
 
58
 
 
59
#endif /* #ifdef HAVE_NETWORK */
 
60
 
 
61
#endif /* #ifndef VICE_SOCKETIMPL_H */