source: abuse/trunk/src/sdlport/jnet.cpp @ 130

Last change on this file since 130 was 129, checked in by Sam Hocevar, 14 years ago
  • Get rid of jmalloc and replace it with standard malloc. Modern operating systems certainly perform a lot better than this custom implementation, and we have superior tools (eg. valgrind) to debug and profile memory usage without interfering with the code itself.
File size: 1.4 KB
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 2001 Anthony Kruize <trandor@labyrinth.net.au>
4 *
5 *  This program is free software; you can redistribute it and/or modify
6 *  it under the terms of the GNU General Public License as published by
7 *  the Free Software Foundation; either version 2 of the License, or
8 *  (at your option) any later version.
9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 *  GNU General Public License for more details.
14 *
15 *  You should have received a copy of the GNU General Public License
16 *  along with this program; if not, write to the Free Software Foundation,
17 *  Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
18 */
19
20/* FIXME: this file is unused */
21
22#include "config.h"
23
24#include <stdio.h>
25#include <stdlib.h>
26#include <fcntl.h>
27#include <unistd.h>
28#include <sys/ioctl.h>
29#include <sys/stat.h>
30#include <sys/types.h>
31#include <sys/time.h>
32#include <string.h>
33#include <signal.h>
34#include <netinet/in.h>
35#include <sys/socket.h>
36#include <netdb.h>
37
38#include "jnet.hpp"
39#include "macs.hpp"
40
41int current_sock_err;
42
43int net_init( int protocol )
44{
45    printf( "YO!\n" );
46    if( protocol == TCPIP_PROTOCOL )
47        return 1;
48    else
49        return 0;
50}
51
52void net_uninit()
53{
54    // Nothing to do
55}
Note: See TracBrowser for help on using the repository browser.