最終更新:2019-12-09 (月) 18:20:42 (43d)  

winsock2.h
Top / winsock2.h

https://docs.microsoft.com/en-us/windows/win32/api/winsock2/

関数

  • TitleDescription
    __WSAFDIsSet?The __WSAFDIsSet? function specifies whether a socket is included in a set of socket descriptors.
    accept?The accept function permits an incoming connection attempt on a socket.
    bindThe bind function associates a local address with a socket.
    closesocket?The closesocket function closes an existing socket.
    connectThe connect function establishes a connection to a specified socket.
    FD_SET?Fd_set structure is used by Windows Sockets (Winsock) functions and service providers to place sockets into a set.
    gethostbyaddr?gethostbyaddr is no longer recommended for use as of Windows Sockets 2.
    gethostbynameThe gethostbyname function retrieves host information corresponding to a host name from a host database.
    gethostname?The gethostname function retrieves the standard host name for the local computer.
    GetHostNameW?The GetHostNameW function retrieves the standard host name for the local computer as a Unicode string.
    getpeername?The getpeername function retrieves the address of the peer to which a socket is connected.
    getprotobyname?The getprotobyname function retrieves the protocol information corresponding to a protocol name.
    getprotobynumber?The getprotobynumber function retrieves protocol information corresponding to a protocol number.
    getservbyname?The getservbyname function retrieves service information corresponding to a service name and protocol.
    getservbyport?The getservbyport function retrieves service information corresponding to a port and protocol.
    getsockname?The getsockname function retrieves the local name for a socket.
    getsockopt?The getsockopt function retrieves a socket option.
    htond?Converts a double from host to TCP/IP network byte order (which is big-endian).
    htonf?Converts a float from host to TCP/IP network byte order (which is big-endian).
    htonlThe htonl function converts a u_long from host to TCP/IP network byte order (which is big-endian).
    htonll?Converts an unsigned __int64 from host to TCP/IP network byte order (which is big-endian).
    htonsThe htons function converts a u_short from host to TCP/IP network byte order (which is big-endian).
    inet_addr?The inet_addr function converts a string containing an IPv4 dotted-decimal address into a proper address for the IN_ADDR structure.
    inet_ntoa?The inet_ntoa function converts an (Ipv4) Internet network address into an ASCII string in Internet standard dotted-decimal format.
    ioctlsocket?The ioctlsocket function controls the I/O mode of a socket.
    listen?The listen function places a socket in a state in which it is listening for an incoming connection.
    ntohd?Converts an unsigned __int64 from TCP/IP network order to host byte order (which is little-endian on Intel processors) and returns a double.
    ntohf?Converts an unsigned __int32 from TCP/IP network order to host byte order (which is little-endian on Intel processors) and returns a float.
    ntohl?The ntohl function converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors).
    ntohll?Converts an unsigned __int64 from TCP/IP network order to host byte order (which is little-endian on Intel processors).
    ntohs?The ntohs function converts a u_short from TCP/IP network byte order to host byte order (which is little-endian on Intel processors).
    recvReceives data from a connected socket or a bound connectionless socket.
    recvfromThe recvfrom function receives a datagram and stores the source address.
    selectThe select function determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
    sendSends data on a connected socket.
    sendtoThe sendto function sends data to a specific destination.
    setsockoptSets a socket option.
    shutdownThe shutdown function disables sends or receives on a socket.
    socketThe socket function creates a socket that is bound to a specific transport service provider.
    WSAAccept?The WSAAccept function conditionally accepts a connection based on the return value of a condition function, provides quality of service flow specifications, and allows the transfer of connection data.
    WSAAddressToStringA?Converts all components of a sockaddr structure into a human-readable string representation of the address.
    WSAAddressToStringW?Converts all components of a sockaddr structure into a human-readable string representation of the address.
    WSAAsyncGetHostByAddr?The WSAAsyncGetHostByAddr? function asynchronously retrieves host information that corresponds to an address.Note The WSAAsyncGetHostByAddr? function is not designed to provide parallel resolution of several addresses.
    WSAAsyncGetHostByName?The WSAAsyncGetHostByName? function asynchronously retrieves host information that corresponds to a host name.Note The WSAAsyncGetHostByName? function is not designed to provide parallel resolution of several names.
    WSAAsyncGetProtoByName?The WSAAsyncGetProtoByName? function asynchronously retrieves protocol information that corresponds to a protocol name.
    WSAAsyncGetProtoByNumber?The WSAAsyncGetProtoByNumber? function asynchronously retrieves protocol information that corresponds to a protocol number.
    WSAAsyncGetServByName?The WSAAsyncGetServByName? function asynchronously retrieves service information that corresponds to a service name and port.
    WSAAsyncGetServByPort?The WSAAsyncGetServByPort? function asynchronously retrieves service information that corresponds to a port and protocol.
    WSAAsyncSelect?Requests Windows message-based notification of network events for a socket.
    WSACancelAsyncRequest?The WSACancelAsyncRequest? function cancels an incomplete asynchronous operation.
    WSACancelBlockingCall?The WSACancelBlockingCall? function has been removed in compliance with the Windows Sockets 2 specification, revision 2.2.0.
    WSACleanup?The WSACleanup function terminates use of the WS2_32.dll.
    WSACloseEvent?The WSACloseEvent? function closes an open event object handle.
    WSAConnect?The WSAConnect function establishes a connection to another socket application, exchanges connect data, and specifies required quality of service based on the specified FLOWSPEC structure.
    WSAConnectByList?Establishes a connection to one out of a collection of possible endpoints represented by a set of destination addresses (host names and ports).
    WSAConnectByNameA?Establishes a connection to a specified host and port.
    WSAConnectByNameW?Establishes a connection to a specified host and port.
    WSACreateEvent?The WSACreateEvent function creates a new event object.
    WSADuplicateSocketA?The WSADuplicateSocket? function returns a WSAPROTOCOL_INFO structure that can be used to create a new socket descriptor for a shared socket. The WSADuplicateSocket? function cannot be used on a QOS-enabled socket.
    WSADuplicateSocketW?The WSADuplicateSocket? function returns a WSAPROTOCOL_INFO structure that can be used to create a new socket descriptor for a shared socket. The WSADuplicateSocket? function cannot be used on a QOS-enabled socket.
    WSAEnumNameSpaceProvidersA?The WSAEnumNameSpaceProviders? function retrieves information on available namespace providers.
    WSAEnumNameSpaceProvidersExA?Retrieves information on available namespace providers.
    WSAEnumNameSpaceProvidersExW?Retrieves information on available namespace providers.
    WSAEnumNameSpaceProvidersW?The WSAEnumNameSpaceProviders? function retrieves information on available namespace providers.
    WSAEnumNetworkEvents?The WSAEnumNetworkEvents? function discovers occurrences of network events for the indicated socket, clear internal network event records, and reset event objects (optional).
    WSAEnumProtocolsA?The WSAEnumProtocols? function retrieves information about available transport protocols.
    WSAEnumProtocolsW?The WSAEnumProtocols? function retrieves information about available transport protocols.
    WSAEventSelect?The WSAEventSelect? function specifies an event object to be associated with the specified set of FD_XXX network events.
    WSAGetLastError?Returns the error status for the last Windows Sockets operation that failed.
    WSAGetOverlappedResult?The WSAGetOverlappedResult function retrieves the results of an overlapped operation on the specified socket.
    WSAGetQOSByName?The WSAGetQOSByName? function initializes a QOS structure based on a named template, or it supplies a buffer to retrieve an enumeration of the available template names.
    WSAGetServiceClassInfoA?The WSAGetServiceClassInfo? function retrieves the class information (schema) pertaining to a specified service class from a specified namespace provider.
    WSAGetServiceClassInfoW?The WSAGetServiceClassInfo? function retrieves the class information (schema) pertaining to a specified service class from a specified namespace provider.
    WSAGetServiceClassNameByClassIdA?The WSAGetServiceClassNameByClassId? function retrieves the name of the service associated with the specified type. This name is the generic service name, like FTP or SNA, and not the name of a specific instance of that service.
    WSAGetServiceClassNameByClassIdW?The WSAGetServiceClassNameByClassId? function retrieves the name of the service associated with the specified type. This name is the generic service name, like FTP or SNA, and not the name of a specific instance of that service.
    WSAHtonl?The WSAHtonl function converts a u_long from host byte order to network byte order.
    WSAHtons?The WSAHtons function converts a u_short from host byte order to network byte order.
    WSAInstallServiceClassA?The WSAInstallServiceClass? function registers a service class schema within a namespace.
    WSAInstallServiceClassW?The WSAInstallServiceClass? function registers a service class schema within a namespace.
    WSAIoctl?The WSAIoctl function controls the mode of a socket.
    WSAIsBlocking?This function has been removed in compliance with the Windows Sockets 2 specification, revision 2.2.0.
    WSAJoinLeaf?The WSAJoinLeaf? function joins a leaf node into a multipoint session, exchanges connect data, and specifies needed quality of service based on the specified FLOWSPEC structures.
    WSALookupServiceBeginA?The WSALookupServiceBegin? function initiates a client query that is constrained by the information contained within a WSAQUERYSET structure.
    WSALookupServiceBeginW?The WSALookupServiceBegin? function initiates a client query that is constrained by the information contained within a WSAQUERYSET structure.
    WSALookupServiceEnd?The WSALookupServiceEnd? function is called to free the handle after previous calls to WSALookupServiceBegin? and WSALookupServiceNext?.
    WSALookupServiceNextA?The WSALookupServiceNext? function is called after obtaining a handle from a previous call to WSALookupServiceBegin? in order to retrieve the requested service information.
    WSALookupServiceNextW?The WSALookupServiceNext? function is called after obtaining a handle from a previous call to WSALookupServiceBegin? in order to retrieve the requested service information.
    WSANSPIoctl?Enables developers to make I/O control calls to a registered namespace.
    WSANtohl?The WSANtohl function converts a u_long from network byte order to host byte order.
    WSANtohs?The WSANtohs function converts a u_short from network byte order to host byte order.
    WSAPoll?The WSAPoll function determines status of one or more sockets.
    WSAProviderConfigChange?The WSAProviderConfigChange? function notifies the application when the provider configuration is changed.
    WSARecv?Receives data from a connected socket or a bound connectionless socket.
    WSARecvDisconnect?The WSARecvDisconnect? function terminates reception on a socket, and retrieves the disconnect data if the socket is connection oriented.
    WSARecvFrom?Receives a datagram and stores the source address.
    WSARemoveServiceClass?The WSARemoveServiceClass? function permanently removes the service class schema from the registry.
    WSAResetEvent?The WSAResetEvent? function resets the state of the specified event object to nonsignaled.
    WSASend?Sends data on a connected socket.
    WSASendDisconnect?The WSASendDisconnect? function initiates termination of the connection for the socket and sends disconnect data.
    WSASendMsg?Sends data and optional control information from connected and unconnected sockets. Note This function is a Microsoft-specific extension to the Windows Sockets specification. .
    WSASendTo?Sends data to a specific destination, using overlapped I/O where applicable.
    WSASetBlockingHook?This function has been removed in compliance with the Windows Sockets 2 specification, revision 2.2.0.
    WSASetEvent?The WSASetEvent? function sets the state of the specified event object to signaled.
    WSASetLastError?The WSASetLastError function sets the error code that can be retrieved through the WSAGetLastError? function.
    WSASetServiceA?The WSASetService? function registers or removes from the registry a service instance within one or more namespaces.
    WSASetServiceW?The WSASetService? function registers or removes from the registry a service instance within one or more namespaces.
    WSASocketA?The WSASocket function creates a socket that is bound to a specific transport-service provider.
    WSASocketW?The WSASocket function creates a socket that is bound to a specific transport-service provider.
    WSAStartupInitiates use of the Winsock DLL by a process.
    WSAStringToAddressA?The WSAStringToAddress? function converts a network address in its standard text presentation form into its numeric binary form in a sockaddr structure, suitable for passing to Windows Sockets routines that take such a structure.
    WSAStringToAddressW?The WSAStringToAddress? function converts a network address in its standard text presentation form into its numeric binary form in a sockaddr structure, suitable for passing to Windows Sockets routines that take such a structure.
    WSAUnhookBlockingHook?This function has been removed in compliance with the Windows Sockets 2 specification, revision 2.2.0.
    WSAWaitForMultipleEvents?Returns when one or all of the specified event objects are in the signaled state, when the time-out interval expires, or when an I/O completion routine has executed.