Added initial IPX support
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1668
This commit is contained in:
parent
8dda3577a9
commit
7ee4be6fd8
5 changed files with 1580 additions and 5 deletions
49
include/ipxserver.h
Normal file
49
include/ipxserver.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright (C) 2002 The DOSBox Team
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _IPXSERVER_H_
|
||||
#define _IPXSERVER_H_
|
||||
|
||||
#if C_IPX
|
||||
|
||||
#include "SDL_net.h"
|
||||
|
||||
struct packetBuffer {
|
||||
Bit8u buffer[1024];
|
||||
Bit16s packetSize; // Packet size remaining in read
|
||||
Bit16s packetRead; // Bytes read of total packet
|
||||
bool inPacket; // In packet reception flag
|
||||
bool connected; // Connected flag
|
||||
bool waitsize;
|
||||
};
|
||||
|
||||
#define SOCKETTABLESIZE 16
|
||||
#define IPXBUFFERSIZE 1024
|
||||
#define CONVIP(hostvar) hostvar & 0xff, (hostvar >> 8) & 0xff, (hostvar >> 16) & 0xff, (hostvar >> 24) & 0xff
|
||||
#define CONVIPX(hostvar) hostvar[0], hostvar[1], hostvar[2], hostvar[3], hostvar[4], hostvar[5]
|
||||
|
||||
|
||||
void IPX_StopServer();
|
||||
bool IPX_StartServer(Bit16u portnum);
|
||||
bool IPX_isConnectedToServer(Bits tableNum, IPaddress ** ptrAddr);
|
||||
|
||||
Bit8u packetCRC(Bit8u *buffer, Bit16u bufSize);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue