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
1.0 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. transport.hxx
  5. Abstract:
  6. transport
  7. Author:
  8. Larry Zhu (LZhu) January 1, 2002
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef TRANSPORT_HXX
  14. #define TRANSPORT_HXX
  15. //
  16. // maximum buffer size to trace
  17. //
  18. const kMsgHeaderLen = 256;
  19. extern ULONG g_MessageNumTlsIndex;
  20. extern ULONG g_MsgHeaderLen;
  21. HRESULT
  22. ServerInit(
  23. IN USHORT Port,
  24. IN OPTIONAL PCSTR pszDescription,
  25. OUT SOCKET* pSocketListen
  26. );
  27. HRESULT
  28. ClientConnect(
  29. IN OPTIONAL PCSTR pszServer,
  30. IN USHORT Port,
  31. OUT SOCKET* pSocketConnected
  32. );
  33. HRESULT
  34. WriteMessage(
  35. IN SOCKET s,
  36. IN ULONG cbBuf,
  37. IN VOID* pBuf
  38. );
  39. HRESULT
  40. ReadMessage(
  41. IN SOCKET s,
  42. IN ULONG cbBuf,
  43. IN OUT VOID* pBuf,
  44. OUT ULONG* pcbRead
  45. );
  46. HRESULT
  47. GetPerThreadpMessageNum(
  48. IN ULONG Index,
  49. OUT ULONG** ppMessageNum
  50. );
  51. #endif // #ifndef TRANSPORT_HXX