Здравствуйте, DreamWeaver, Вы писали:
DW>Подскажите плиз API функции для работоты с сокетами: для открытия, закрытия и т п
Microsoft Windows-Specific Extension Functions
The Windows Sockets specification provides a number of extensions to the standard set of Berkeley Sockets routines. Principally, these extended functions allow message or function-based, asynchronous access to network events, as well as enable overlapped I/O. While use of this extended API set is not mandatory for socket-based programming (with the exception of WSAStartup and WSACleanup), it is recommended for conformance with the Microsoft Windows programming paradigm. For features introduced in Windows Sockets 2, please see New Concepts, Additions and Changes for Windows Sockets 2.
Routine Meaning
WSAAccept 1 An extended version of accept, which allows for conditional acceptance.
WSAAsyncGetHostByAddr 2 3
WSAAsyncGetHostByName 2 3
WSAAsyncGetProtoByName 2 3
WSAAsyncGetProtoByNumber 2 3
WSAAsyncGetServByName 2 3
WSAAsyncGetServByPort 2 3
A set of functions that provide asynchronous versions of the standard Berkeley getXbyY functions. For example, the WSAAsyncGetHostByName function provides an asynchronous, message-based implementation of the standard Berkeley gethostbyname function.
WSAAsyncSelect 3 Performs asynchronous version of select.
WSACancelAsyncRequest 2 3 Cancels an outstanding instance of a WSAAsyncGetXByY function.
WSACleanup Signs off from the underlying Windows Sockets .dll.
WSACloseEvent Destroys an event object.
WSAConnect 1 An extended version of connect which allows for exchange of connect data and QOS specification.
WSACreateEvent Creates an event object.
WSADuplicateSocket Allows an underlying socket to be shared by creating a virtual socket.
WSAEnumNetworkEvents Discovers occurrences of network events.
WSAEnumProtocols Retrieves information about each available protocol.
WSAEventSelect Associates network events with an event object.
WSAGetLastError 3 Obtains details of last Windows Sockets error.
WSAGetOverlappedResult Gets completion status of overlapped operation.
WSAGetQOSByName Supplies QOS parameters based on a well-known service name.
WSAHtonl Extended version of htonl.
WSAHtons Extended version of htons.
WSAIoctl 1 Overlapped-capable version of IOCTL.
WSAJoinLeaf 1 Adds a multipoint leaf to a multipoint session.
WSANtohl Extended version of ntohl.
WSANtohs Extended version of ntohs.
WSAProviderConfigChange Receives notifications of service providers being installed/removed.
WSARecv 1 An extended version of recv which accommodates scatter/gather I/O, overlapped sockets and provides the flags parameter as in, out.
WSARecvFrom 1 An extended version of recvfrom which accommodates scatter/gather I/O, overlapped sockets and provides the flags parameter as in, out.
WSAResetEvent Resets an event object.
WSASend 1 An extended version of send which accommodates scatter/gather I/O and overlapped sockets.
WSASendTo 1 An extended version of sendto which accommodates scatter/gather I/O and overlapped sockets.
WSASetEvent Sets an event object.
WSASetLastError 3 Sets the error to be returned by a subsequent WSAGetLastError.
WSASocket An extended version of socket which takes a WSAPROTOCOL_INFO structure as input and allows overlapped sockets to be created.
WSAStartup 3 Initializes the underlying Windows Sockets .dll.
WSAWaitForMultipleEvents 1 Blocks on multiple event objects.
***
1 The routine can block if acting on a blocking socket.
2 The routine is always realized by the name resolution provider associated with the default TCP/IP service provider, if any.
3 The routine was originally a Windows Sockets 1.1 function