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

Last change on this file since 28 was 2, checked in by Sam Hocevar, 18 years ago
  • imported original 0.7.0 tarball
File size: 521 bytes
Line 
1#include <stdio.h>
2#include <stdlib.h>
3#include <fcntl.h>
4#include <unistd.h>
5#include <sys/ioctl.h>
6#include <sys/stat.h>
7#include <sys/types.h>
8#include <sys/time.h>
9#include <string.h>
10#include <signal.h>
11#include <netinet/in.h>
12#include <sys/socket.h>
13#include <netdb.h>
14
15#include "jnet.hpp"
16#include "macs.hpp"
17#include "jmalloc.hpp"
18
19int current_sock_err;
20
21int net_init( int protocol )
22{
23        printf( "YO!\n" );
24        if( protocol == TCPIP_PROTOCOL )
25                return 1;
26        else
27                return 0;
28}
29
30void net_uninit()
31{
32        // Nothing to do
33}
Note: See TracBrowser for help on using the repository browser.