Windows* Sockets 2 Application Programming Interface An Interface for Transparent Network Programming Under Microsoft Windowstm revision 2 August 7, 1997



Download 1.64 Mb.
Page9/49
Date31.07.2017
Size1.64 Mb.
#24975
1   ...   5   6   7   8   9   10   11   12   ...   49

42 Summary of New Functions


The new API functions for Winsock 2 are summarized in the following tables.

43 Generic Data Transport Functions


WSAAccept()*

An extended version of accept() which allows for conditional acceptance and socket grouping.

WSACloseEvent()

Destroys an event object.

WSAConnect()*

An extended version of connect() which allows for exchange of connect data and QOS specification.

WSACreateEvent()

Creates an event object.

WSADuplicateSocket()

Create a new socket descriptor for a shared socket.

WSAEnumNetworkEvents()

Discover occurrences of network events.

WSAEnumProtocols()

Retrieve information about each available protocol.

WSAEventSelect()

Associate network events with an event object.

WSAGetOverlappedResult()

Get completion status of overlapped operation.

WSAGetQOSByName()

Supply QOS parameters based on a well-known service name.

WSAHtonl()

Extended version of htonl()

WSAHtons()

Extended version of htons()

WSAIoctl()*

Overlapped-capable version of ioctlsocket()

WSAJoinLeaf()*

Join a leaf node into a multipoint session.

WSANtohl()

Extended version of ntohl()

WSANtohs()

Extended version of ntohs()

WSAProviderConfigChange()

Receive notifications of service providers being installed/removed.

WSARecv()*

An extended version of recv() which accommodates scatter/gather I/O, overlapped sockets and provides the flags parameter as IN OUT

WSARecvDisconnect()

Terminate reception on a socket, and retrieve the disconnect data if the socket is connection-oriented.

WSARecvFrom()*

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()*

An extended version of send() which accommodates scatter/gather I/O and overlapped sockets

WSASendDisconnect()

Initiate termination of a socket connection and optionally send disconnect data.

WSASendTo()*

An extended version of sendto() which accommodates scatter/gather I/O and overlapped sockets

WSASetEvent()

Sets an event object.

WSASocket()

An extended version of socket() which takes a WSAPROTOCOL_INFO struct as input and allows overlapped sockets to be created. Also allows socket groups to be formed.

WSAWaitForMultipleEvents()

Blocks on multiple event objects.

* = The routine can block if acting on a blocking socket.



44 Name Registration and Resolution Functions


WSAAddressToString()

Convert an address structure into a human-readable numeric string

WSAEnumNameSpaceProviders()

Retrieve the list of available Name Registration and Resolution service providers

WSAGetServiceClassInfo

Retrieves all of the class-specific information pertaining to a service class

WSAGetServiceClassNameByClassId()

Returns the name of the service associated with the given type

WSAInstallServiceClass()

Create a new new service class type and store its class-specific information

WSALookupServiceBegin()

Initiate a client query to retrieve name information as constrained by a WSAQUERYSET data structure

WSALookupServiceEnd()

Finish a client query started by WSALookupServiceBegin() and free resources associated with the query

WSALookupServiceNext()

Retrieve the next unit of name information from a client query initiated by WSALookupServiceBegin()

WSARemoveServiceClass()

Permanently removes a service class type

WSASetService()

Register or deregister a service instance within one or more name spaces

WSAStringToAddress()

Convert a human-readable numeric string to a socket address structure suitable for passing to Windows Sockets routines.



Download 1.64 Mb.

Share with your friends:
1   ...   5   6   7   8   9   10   11   12   ...   49




The database is protected by copyright ©ininet.org 2024
send message

    Main page