IPX95.CPP 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. ** Command & Conquer(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  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 3 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, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***************************************************************************
  19. ** 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 **
  20. ***************************************************************************
  21. * *
  22. * Project Name : Command & Conquer *
  23. * *
  24. * File Name : IPX95PP *
  25. * *
  26. * Programmer : Steve Tall *
  27. * *
  28. * Start Date : January 22nd, 1996 *
  29. * *
  30. * Last Update : January 22nd, 1996 [ST] *
  31. * *
  32. *-------------------------------------------------------------------------*
  33. * *
  34. * *
  35. * *
  36. *-------------------------------------------------------------------------*
  37. * Functions: *
  38. * *
  39. * *
  40. * *
  41. * *
  42. * *
  43. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  44. #include "function.h"
  45. #include "ipx95.h"
  46. int IPX_Open_Socket(unsigned short socket)
  47. {
  48. return (IPX_Open_Socket95((int)socket));
  49. }
  50. int IPX_Close_Socket(unsigned short socket)
  51. {
  52. IPX_Close_Socket95((int)socket);
  53. return (0);
  54. }
  55. int IPX_Get_Connection_Number(void)
  56. {
  57. return (IPX_Get_Connection_Number95());
  58. }
  59. int IPX_Broadcast_Packet(unsigned char *buf, int buflen)
  60. {
  61. return(IPX_Broadcast_Packet95(buf, buflen));
  62. }
  63. extern "C"{
  64. extern void __cdecl Int3(void);
  65. }
  66. int IPX_Get_Local_Target(unsigned char *dest_network, unsigned char *dest_node,
  67. unsigned short dest_socket, unsigned char *bridge_address)
  68. {
  69. //Int3();
  70. return (IPX_Get_Local_Target95(dest_network, dest_node, dest_socket, bridge_address));
  71. }