mirror of https://github.com/tongzx/nt5src
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
747 B
43 lines
747 B
/*++
|
|
|
|
Copyright (c) 1999, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
sample\socket.h
|
|
|
|
Abstract:
|
|
|
|
The file contains the header for socket.c
|
|
|
|
--*/
|
|
|
|
#ifndef _SOCKET_H_
|
|
#define _SOCKET_H_
|
|
|
|
DWORD
|
|
SocketCreate (
|
|
IN IPADDRESS ipAddress,
|
|
IN HANDLE hEvent,
|
|
OUT SOCKET *psSocket);
|
|
|
|
DWORD
|
|
SocketDestroy (
|
|
IN SOCKET sSocket);
|
|
|
|
DWORD
|
|
SocketSend (
|
|
IN SOCKET sSocket,
|
|
IN IPADDRESS ipDestination,
|
|
IN PPACKET pPacket);
|
|
|
|
DWORD
|
|
SocketReceive (
|
|
IN SOCKET sSocket,
|
|
IN PPACKET pPacket);
|
|
|
|
BOOL
|
|
SocketReceiveEvent (
|
|
IN SOCKET sSocket);
|
|
|
|
#endif // _SOCKET_H_
|