home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / winsock / iocomplt / commdef.h next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.2 KB  |  54 lines

  1.  
  2. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. // PARTICULAR PURPOSE.
  6. //
  7. // Copyright (C) 1993-1997  Microsoft Corporation.  All Rights Reserved.
  8. //
  9. //  MODULE:   commdef.h
  10. //
  11. //  PURPOSE:  Define types and values for communication.
  12. //
  13.  
  14. typedef struct _CLIENT_IO_RETURN_DATA
  15. {
  16.    DWORD ByteCount;
  17. }
  18. CLIENT_IO_RETURN_DATA, *PCLIENT_IO_RETURN_DATA;
  19.  
  20. typedef struct _CLIENT_IO_I_AM_DONE
  21. {
  22.    DWORD TotalTicks;
  23.    DWORD TotalIterations;
  24.    DWORD TotalBytesTransferred;
  25. }
  26. CLIENT_IO_I_AM_DONE, *PCLIENT_IO_I_AM_DONE;
  27.  
  28. //
  29. // Message types
  30. //
  31. #define CLIENT_IO_MT_RETURN_DATA    1
  32. #define CLIENT_IO_MT_I_AM_DONE      2
  33.  
  34. typedef struct _CLIENT_IO_BUFFER
  35. {
  36.    DWORD MessageType;
  37.    union
  38.    {
  39.       CLIENT_IO_RETURN_DATA ReturnData;
  40.       CLIENT_IO_I_AM_DONE IAmDone;
  41.    }
  42.    u;
  43. }
  44. CLIENT_IO_BUFFER, *PCLIENT_IO_BUFFER;
  45.  
  46.  
  47. #define CLIENT_OUTBOUND_BUFFER_MAX  1024
  48.  
  49. //
  50. // Choose an arbitrary port number.  May need to be changed if
  51. // it conflicts with an existing application.
  52. //
  53. #define SERVPORT 12396
  54.