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.

54 lines
1.2 KiB

  1. /*++
  2. COMMON.H
  3. General routines shared between sserver and sclient.
  4. Copyright (C) 1997 Microsoft Corporation
  5. Created 01-08-1997 by DavidCHR
  6. --*/
  7. #ifdef _KERBCOMM_H_
  8. /* we want kerberos stuff */
  9. typedef KERB_AP_REPLY *PKERB_AP_REPLY;
  10. typedef KERB_AP_REQUEST *PKERB_AP_REQUEST;
  11. #endif
  12. #ifdef CPLUSPLUS
  13. extern "C" {
  14. #endif
  15. /* if remote_host is NULL, start as a server, listening on "port". */
  16. BOOL
  17. ConfigureNetwork( IN OPTIONAL PCHAR remote_host,
  18. IN SHORT port, /* must be host short */
  19. OUT SOCKET *ReturnedSocket,
  20. OUT struct sockaddr *sockname,
  21. OUT int *szSockaddr,
  22. OUT WSADATA *wsaData );
  23. BOOL
  24. NetWrite( IN SOCKET connection_to_write_on,
  25. IN PVOID data_to_send,
  26. IN ULONG how_much_data );
  27. BOOL
  28. NetRead( IN SOCKET listening_connection,
  29. OUT PVOID buffer_for_inbound_data,
  30. IN PULONG sizes, /* IN: how big is buffer,
  31. OUT: how many bytes were really read */
  32. IN OPTIONAL ULONG seconds_to_wait_before_timeout
  33. #ifdef CPLUSPLUS
  34. =0L
  35. #endif
  36. );
  37. #ifdef CPLUSPLUS
  38. }
  39. #endif