IPX95.CPP (4618B)
1 // 2 // Copyright 2020 Electronic Arts Inc. 3 // 4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 5 // software: you can redistribute it and/or modify it under the terms of 6 // the GNU General Public License as published by the Free Software Foundation, 7 // either version 3 of the License, or (at your option) any later version. 8 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 /*************************************************************************** 17 ** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ** 18 *************************************************************************** 19 * * 20 * Project Name : Command & Conquer * 21 * * 22 * File Name : IPX95PP * 23 * * 24 * Programmer : Steve Tall * 25 * * 26 * Start Date : January 22nd, 1996 * 27 * * 28 * Last Update : January 22nd, 1996 [ST] * 29 * * 30 *-------------------------------------------------------------------------* 31 * * 32 * * 33 * * 34 *-------------------------------------------------------------------------* 35 * Functions: * 36 * * 37 * * 38 * * 39 * * 40 * * 41 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 42 43 #include "function.h" 44 #include "ipx95.h" 45 46 47 // Stub in old IPX here ST - 12/20/2018 1:53PM 48 extern "C"{ 49 extern BOOL __stdcall IPX_Initialise(void) {return 0;} 50 extern BOOL __stdcall IPX_Get_Outstanding_Buffer95(unsigned char *buffer) {return 0;} 51 extern void __stdcall IPX_Shut_Down95(void) {} 52 extern int __stdcall IPX_Send_Packet95(unsigned char *, unsigned char *, int, unsigned char*, unsigned char*) {return 0;} 53 extern int __stdcall IPX_Broadcast_Packet95(unsigned char *, int){return 0;} 54 extern BOOL __stdcall IPX_Start_Listening95(void){return 0;} 55 extern int __stdcall IPX_Open_Socket95(int socket){return 0;} 56 extern void __stdcall IPX_Close_Socket95(int socket){} 57 extern int __stdcall IPX_Get_Connection_Number95(void){return 0;} 58 extern int __stdcall IPX_Get_Local_Target95(unsigned char *, unsigned char*, unsigned short, unsigned char*){return 0;} 59 } 60 61 62 63 int IPX_Open_Socket(unsigned short socket) 64 { 65 return -1; 66 //return (IPX_Open_Socket95((int)socket)); //ST - 12/20/2018 11:34AM 67 } 68 69 70 int IPX_Close_Socket(unsigned short socket) 71 { 72 //IPX_Close_Socket95((int)socket); //ST - 12/20/2018 11:34AM 73 return (0); 74 } 75 76 77 int IPX_Get_Connection_Number(void) 78 { 79 //return (IPX_Get_Connection_Number95()); //ST - 12/20/2018 11:34AM 80 return -1; 81 } 82 83 84 85 int IPX_Broadcast_Packet(unsigned char *buf, int buflen) 86 { 87 //return(IPX_Broadcast_Packet95(buf, buflen)); //ST - 12/20/2018 11:34AM 88 return 0; 89 } 90 91 //extern "C"{ 92 // extern void __cdecl Int3(void); 93 //} 94 //ST - 12/20/2018 11:34AM 95 96 int IPX_Get_Local_Target(unsigned char *dest_network, unsigned char *dest_node, 97 unsigned short dest_socket, unsigned char *bridge_address) 98 { 99 //Int3(); 100 // return (IPX_Get_Local_Target95(dest_network, dest_node, dest_socket, bridge_address)); //ST - 12/20/2018 11:34AM 101 return 0; 102 } 103