~ubuntu-branches/ubuntu/natty/vice/natty

« back to all changes in this revision

Viewing changes to src/arch/beos/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 beos/socketimpl.h \n
 
2
 *  \author Spiro Trikaliotis\n
 
3
 *  \brief  Abstraction from network sockets.
 
4
 *
 
5
 * socketimpl.h - Abstraction from network sockets. Unix implementation.
 
6
 *
 
7
 * Written by
 
8
 *  Spiro Trikaliotis <spiro.trikaliotis@gmx.de>
 
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
#include <socket.h>
 
39
#include <netdb.h>
 
40
#include <byteorder.h>
 
41
 
 
42
typedef unsigned int SOCKET;
 
43
typedef struct timeval TIMEVAL;
 
44
typedef unsigned long in_addr_t;
 
45
 
 
46
#define PF_INET AF_INET
 
47
#define INVALID_SOCKET (SOCKET)(~0)
 
48
#define HAVE_HTONS
 
49
#define HAVE_HTONL
 
50
 
 
51
#ifndef INADDR_NONE
 
52
#define INADDR_NONE ((unsigned long)-1)
 
53
#endif
 
54
 
 
55
#define SOCKET_IS_INVALID(_x) ((_x) < 0)
 
56
 
 
57
#endif /* #ifdef HAVE_NETWORK */
 
58
 
 
59
#endif /* #ifndef VICE_SOCKETIMPL_H */