1
/*! \file beos/socketimpl.h \n
2
* \author Spiro Trikaliotis\n
3
* \brief Abstraction from network sockets.
5
* socketimpl.h - Abstraction from network sockets. Unix implementation.
8
* Spiro Trikaliotis <spiro.trikaliotis@gmx.de>
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
40
#include <byteorder.h>
42
typedef unsigned int SOCKET;
43
typedef struct timeval TIMEVAL;
44
typedef unsigned long in_addr_t;
46
#define PF_INET AF_INET
47
#define INVALID_SOCKET (SOCKET)(~0)
52
#define INADDR_NONE ((unsigned long)-1)
55
#define SOCKET_IS_INVALID(_x) ((_x) < 0)
57
#endif /* #ifdef HAVE_NETWORK */
59
#endif /* #ifndef VICE_SOCKETIMPL_H */