Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1994 - 1999
  6. //
  7. // File: sccomn.h
  8. //
  9. //--------------------------------------------------------------------------
  10. /////////////////////////////////////////////////////////////////////////
  11. //
  12. // Filename: sccomn.h
  13. //
  14. // Description: This file contains routines for Socket I/O
  15. // for use with IPC raw network performance tests.
  16. //
  17. // Authors: Scott Holden (Translator from NT API to win32 API)
  18. // Mahesh Keni (Mahesh wrote this application using mostly
  19. // NT native API calls)
  20. //
  21. /////////////////////////////////////////////////////////////////////////
  22. typedef int INTEGER;
  23. typedef struct reqbuf * PREQBUF;
  24. #define ClearSocket(PSOCK) {RtlZeroMemory(PSOCK ,sizeof (SOCKADDR));}
  25. INTEGER
  26. Socket_Listen(
  27. IN USHORT CliIndx
  28. );
  29. INTEGER
  30. Socket_Accept(
  31. IN USHORT CliIndx
  32. );
  33. INTEGER
  34. Socket_Recv(
  35. IN USHORT CliIndx,
  36. IN OUT PVOID PReadBuf,
  37. IN OUT PULONG rpdatalen
  38. );
  39. INTEGER
  40. Socket_Send(
  41. IN USHORT CliIndx,
  42. IN OUT PVOID PWriteBuf,
  43. IN OUT PULONG spdatalen
  44. );
  45. INTEGER
  46. Socket_Close(
  47. IN USHORT CliIndx
  48. );
  49. /************************************************************************/
  50. /************************************************************************/
  51. // External variables
  52. /************************************************************************/
  53. extern PCHAR HostName;
  54. extern PCHAR ServerName;
  55. extern int AddrFly;
  56. extern struct client Clients[MAXCLIENTS]; // all the client data
  57. extern USHORT NClients;
  58.