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.

43 lines
790 B

  1. /*++
  2. Copyright (c) 1999, Microsoft Corporation
  3. Module Name:
  4. sample\socket.h
  5. Abstract:
  6. The file contains the header for socket.c
  7. --*/
  8. #ifndef _SOCKET_H_
  9. #define _SOCKET_H_
  10. DWORD
  11. SocketCreate (
  12. IN IPADDRESS ipAddress,
  13. IN HANDLE hEvent,
  14. OUT SOCKET *psSocket);
  15. DWORD
  16. SocketDestroy (
  17. IN SOCKET sSocket);
  18. DWORD
  19. SocketSend (
  20. IN SOCKET sSocket,
  21. IN IPADDRESS ipDestination,
  22. IN PPACKET pPacket);
  23. DWORD
  24. SocketReceive (
  25. IN SOCKET sSocket,
  26. IN PPACKET pPacket);
  27. BOOL
  28. SocketReceiveEvent (
  29. IN SOCKET sSocket);
  30. #endif // _SOCKET_H_