Leaked source code of windows server 2003
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.

72 lines
842 B

  1. /*++
  2. Copyright 1996-1997 Microsoft Corporation
  3. Module Name:
  4. sockcomm.h
  5. Abstract:
  6. Some common functions for sockets
  7. Revision History:
  8. --*/
  9. #ifndef SOCK_COMM_H
  10. #define SOCK_COMM_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include <windows.h>
  15. #include <winsock.h>
  16. BOOL
  17. InitWinsock(
  18. VOID
  19. );
  20. BOOL
  21. TermWinsock(
  22. VOID
  23. );
  24. BOOL
  25. SendMsg(
  26. IN SOCKET s,
  27. IN ULONG cbBuf,
  28. IN VOID* pBuf
  29. );
  30. BOOL
  31. ReceiveMsg(
  32. IN SOCKET s,
  33. IN ULONG cbBuf,
  34. IN OUT VOID* pBuf,
  35. OUT ULONG* pcbRead
  36. );
  37. BOOL
  38. SendBytes(
  39. IN SOCKET s,
  40. IN ULONG cbBuf,
  41. IN VOID* pBuf
  42. );
  43. BOOL
  44. ReceiveBytes(
  45. IN SOCKET s,
  46. IN ULONG cbBuf,
  47. IN VOID* pBuf,
  48. OUT ULONG *pcbRead
  49. );
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // SOCK_COMM_H