Winsock2関数
このページはまだ書き掛けです。
winsock2機能について、私が使いそうな物を中心にメモを書き足して行く予定です。

Winsock2 Functions
Winsock2機能

The following list provides concise descriptions of each Winsock function.
以下のリストは個々のWinsock機能の簡潔な説明を提供します。
For additional information on any function, click the function name.
それぞれの機能の詳細情報に付いては、機能名をクリックしてください。

参照 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/winsock_functions.asp

Function
機能
Description
記述
accept
Permits an incoming connection attempt on a socket.
ソケットへの接続要求試みを可能にします。
AcceptEx
Accepts a new connection, returns the local and remote address, and receives the first block of data sent by the client application.
新しい接続を受け入れて、ローカル、そして、リモートのアドレスを返して、クライアントアプリケーションより送られたデータの最初のブロックを受け取ります。
bind
Associates a local address with a socket.
ローカルアドレスをソケットに関連づけます。
closesocket
Closes an existing socket.
既存のソケットを閉じます。
connect
Establishes a connection to a specified socket.
指定されたソケットへの接続を確立します。
ConnectEx
Establishes a connection to a specified socket, and optionally sends data once the connection is established.
指定されたソケットへの接続を確立します、そして、任意に、一旦接続が確立されるならば、データを送ります。
Only supported on connection-oriented sockets.
接続指向のソケットの上にサポートされるだけです。
DisconnectEx Closes a connection on a socket, and allows the socket handle to be reused.
ソケットの接続を閉じます、そして、ソケットハンドルを再利用可能にします。
EnumProtocols
Retrieves information about a specified set of network protocols that are active on a local host.
ローカルホストでの、アクティブである処の、ネットワークプロトコルの指定されたセットに関する情報を検索します。
freeaddrinfo Frees address information that the getaddrinfo function dynamically allocates in addrinfo structures.
getaddrinfo 関数により動的割り当てされた addrinfo 構造体を開放します。
FreeAddrInfoEx
Frees address information that the GetAddrInfoEx function dynamically allocates in addrinfoex structures.
GetAddrInfoEx関数がaddrinfoex構造体に動的割り当てしたメモリ領域である処のアドレス情報を開放します。
FreeAddrInfoW
Frees address information that the GetAddrInfoW function dynamically allocates in addrinfoW structures.
GetAddrInfoW機能がaddrinfoWにダイナミックに構造を割り当てるというアドレス情報を解放します。
gai_strerror
Assists in printing error messages based on the EAI_* errors returned by the getaddrinfo function.
EAI_*誤りに基づく印刷エラーメッセージにおけるアシストはgetaddrinfo機能で戻りました。
GetAcceptExSockaddrs
Parses the data obtained from a call to the AcceptEx function.
呼び出しからAcceptEx機能まで得られたデータを分析します。
GetAddressByName
Queries a namespace, or a set of default namespaces, to retrieve network address information for a specified network service.
指定されたネットワーク・サービスのためのネットワーク・アドレス情報を検索するために名前空間、または1セットのデフォルト名前空間について質問します。
This process is known as service name resolution.
このプロセスはサービス名前解決として知られています。
A network service can also use the function to obtain local address information that it can use with the bind function.
また、ネットワーク・サービスは、それがひもの機能と共に使用することができるローカルアドレス情報を得るのに機能を使用することができます。
getaddrinfo Provides protocol-independent translation from an ANSI host name to an address.
ANSIホスト名からアドレスへのプトロコルより独立した変換を提供する
GetAddrInfoW
Provides protocol-independent translation from a Unicode host name to an address.
プロトコルから独立しているユニコードホスト名からアドレスまでの翻訳を提供します。
GetAddrInfoEx
Provides protocol-independent name resolution with additional parameters to qualify which name space providers should handle the request.
要求を資格を与える追加パラメタがある名前スペースプロバイダーが扱うべきであるプロトコルから独立している名前解決に提供します。
gethostbyaddr
Retrieves the host information corresponding to a network address.
ネットワーク・アドレスに対応するホスト情報を検索します。
gethostbyname
Retrieves host information corresponding to a host name from a host database.
ホストデータベースからホスト名に対応するホスト情報を検索します。
Deprecated:
推奨しない:
use getaddrinfo instead.
代わりにgetaddrinfoを使用してください。
gethostname
Retrieves the standard host name for the local computer.
ローカルコンピュータのために標準のホスト名を検索します。
GetNameByType
Retrieves the name of a network service for the specified service type.
指定されたサービスタイプのためにネットワーク・サービスの名前を検索します。
getnameinfo
Provides name resolution from an IPv4 or IPv6 address to an ANSI host name and from a port number to the ANSI service name.
IPv4かIPv6アドレスからANSIホスト名までポートナンバーからANSIサービス名までの名前解決を提供します。
GetNameInfoW
Provides name resolution from an IPv4 or IPv6 address to a Unicode host name and from a port number to the Unicode service name.
IPv4かIPv6アドレスからユニコードホスト名までポートナンバーからユニコードサービス名までの名前解決を提供します。
getpeername
Retrieves the address of the peer to which a socket is connected.
ソケットが接続されている同輩のアドレスを検索します。
getprotobyname
Retrieves the protocol information corresponding to a protocol name.
プロトコル名に対応するプロトコル情報を検索します。
getprotobynumber
Retrieves protocol information corresponding to a protocol number.
プロトコル番号に対応するプロトコル情報を検索します。
getservbyname
Retrieves service information corresponding to a service name and protocol.
サービス名とプロトコルに対応するサービス情報を検索します。
getservbyport
Retrieves service information corresponding to a port and protocol.
ポートとプロトコルに対応するサービス情報を検索します。
GetService
Retrieves information about a network service in the context of a set of default namespaces or a specified namespace.
1セットのデフォルト名前空間か指定された名前空間に関する文脈におけるネットワーク・サービスに関する情報を検索します。
getsockname
Retrieves the local name for a socket.
ソケットのために地方名を検索します。
getsockopt
Retrieves a socket option.
ソケットオプションを検索します。
GetTypeByName
Retrieves a service type GUID for a network service specified by name.
名前によって指定されたネットワーク・サービスのためにサービスタイプGUIDを検索します。
htonl
Converts a u_long from host to TCP/IP network byte order (which is big-endian).
ホスト形式からTCP/IPネットワークバイトオーダー(ビッグ・エンディアン)形式へとu_long値を変換します。
htons
Converts a u_short from host to TCP/IP network byte order (which is big-endian).
ホスト形式からTCP/IPネットワークバイトオーダー(ビッグ・エンディアン)形式へとu_short値を変換します。
inet_addr
Converts a string containing an (Ipv4) Internet Protocol dotted address into a proper address for the in_addr structure.
コネ_addr構造への適切なアドレスに(Ipv4)インターネットプロトコルの点を打たされたアドレスを含むストリングを変換します。
inet_ntoa
Converts an (IPv4) Internet network address into a string in Internet standard dotted format.
インターネットの標準の点を打たされた形式で(IPv4)インターネットネットワーク・アドレスをストリングに変換します。
ioctlsocket
Controls the I/O mode of a socket.
ソケットの入出力モードを制御します。
listen Places a socket a state where it is listening for an incoming connection.
接続要求受け入れ用ステートをソケットに関連付けます。
ntohl
Converts a u_long from TCP/IP network order to host byte order (which is little-endian on Intel processors).
_長い間、TCP/IPネットワークオーダーからホストバイトオーダー(インテルプロセッサの上の小さいエンディアンである)までuを変換します。
ntohs
Converts a u_short from TCP/IP network byte order to host byte order (which is little-endian on Intel processors).
TCP/IPネットワークバイトオーダーからホストバイトオーダー(インテルプロセッサの上の小さいエンディアンである)まで_急にuを変換します。
recv
Receives data from a connected or bound socket.
接続されたか制限されたソケットからデータを受け取ります。
recvfrom
Receives a datagram and stores the source address.
データグラムを受けて、ソースアドレスを保存します。
select
Determines the status of one or more sockets, waiting if necessary, to perform synchronous I/O.
必要なら、同期入出力を実行するために待っていて、1個以上のソケットの状態を決定します。
send
Sends data on a connected socket.
データを接続ソケットに送ります。
sendto
Sends data to a specific destination.
データを特定の目的地に送ります。
SetAddrInfoEx
Registers a host and service name along with associated addresses with a specific namespace provider.
ホストとサービスが関連アドレスと共に特定の名前空間プロバイダーで命名するレジスタ。
SetService
Registers or removes from the registry a network service within one or more namespaces.
1つ以上の名前空間の中で登録からネットワーク・サービスを登録するか、または取り除きます。
Can also add or remove a network service type within one or more namespaces.
また、1つ以上の名前空間の中でネットワーク・サービスタイプを加えるか、または外すことができます。
setsockopt ソケットオプションを設定します。
shutdown
Disables sends or receives on a socket.
無効にする、ソケットの上に発信するか、または受信します。
socket Creates a socket that is bound to a specific service provider.
指定のサービスプロバイダーに制限されるソケットを作成します。
TransmitFile
Transmits file data over a connected socket handle.
ファイルデータを接続ソケットハンドルの上に伝えます。
TransmitPackets
Transmits in-memory data or file data over a connected socket.
メモリのデータかファイルデータを接続ソケットの上に送ります。
WSAAccept
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.
条件付きに状態機能のリターン値に基づく接続を受け入れて、サービスの質流れ仕様を提供して、接続データの転送を許容します。
WSAAddressToString
Converts all components of a sockaddr structure into a human-readable string representation of the address.
sockaddrのすべての部品がアドレスの人間読み込み可能なストリング表現に構造化する転向者。
WSAAsyncGetHostByAddr
Asynchronously retrieves host information that corresponds to an address.
アドレスに対応するホスト情報を非同期に検索します。
WSAAsyncGetHostByName
Asynchronously retrieves host information that corresponds to a host name.
ホスト名に対応するホスト情報を非同期に検索します。
WSAAsyncGetProtoByName
Asynchronously retrieves protocol information that corresponds to a protocol name.
プロトコル名に対応するプロトコル情報を非同期に検索します。
WSAAsyncGetProtoByNumber
Asynchronously retrieves protocol information that corresponds to a protocol number.
プロトコル番号に対応するプロトコル情報を非同期に検索します。
WSAAsyncGetServByName
Asynchronously retrieves service information that corresponds to a service name and port.
サービス名とポートに対応するサービス情報を非同期に検索します。
WSAAsyncGetServByPort
Asynchronously retrieves service information that corresponds to a port and protocol.
ポートとプロトコルに対応するサービス情報を非同期に検索します。
WSAAsyncSelect
Requests Windows message-based notification of network events for a socket.
ソケットのためにネットワークイベントのWindowsのメッセージベースの通知を要求します。
WSACancelAsyncRequest
Cancels an incomplete asynchronous operation.
不完全な非同期動作を中止します。
WSACleanup
Terminates use of the Ws2_32.DLL.
Ws2_32.DLLの使用を終えます。
WSACloseEvent
Closes an open event object handle.
オープン・ゲームオブジェクトハンドルを閉じます。
WSAConnect
Establishes a connection to another socket application, exchanges connect data, and specifies needed quality of service based on the specified FLOWSPEC structure.
設立、別のソケットアプリケーションとのa接続、交換はデータを接続して、指定されたFLOWSPEC構造に基づく必要なサービスの質を指定します。
WSAConnectByList
Establishes a connection to one out of a collection of possible endpoints represented by a set of destination addresses (host names and ports).
1セットの送付先アドレス(ホスト名とポート)によって表された可能な終点の収集から1つに取引関係を築きます。
WSAConnectByName
Establishes a connection to another socket application on a specified host and port
指定されたホストとポートの上に別のソケットアプリケーションに取引関係を築きます。
WSACreateEvent
Creates a new event object.
新しいイベントオブジェクトを作成します。
WSADuplicateSocket
Returns a structure that can be used to create a new socket descriptor for a shared socket.
共有されたソケットのための新しいソケット記述子を作成するのに使用することができる構造を返します。
WSAEnumNameSpaceProviders
Retrieves information about available namespaces.
利用可能な名前空間に関する情報を検索します。
WSAEnumNameSpaceProvidersEx
Retrieves information about available namespaces.
利用可能な名前空間に関する情報を検索します。
WSAEnumNetworkEvents
Discovers occurrences of network events for the indicated socket, clear internal network event records, and reset event objects (optional).
示されたソケット、明確な内部のネットワークイベント記録、およびリセットイベントオブジェクト(任意の)のためにネットワークイベントの発生を発見します。
WSAEnumProtocols
Retrieves information about available transport protocols.
利用可能な輸送プロトコルに関する情報を検索します。
WSAEventSelect
Specifies an event object to be associated with the specified set of FD_XXX network events.
指定されたセットのFD_XXXネットワークイベントに関連しているようにイベントオブジェクトを指定します。
__WSAFDIsSet
Specifies whether a socket is included in a set of socket descriptors.
ソケットがソケット記述子のセットに含まれているかどうか指定します。
WSAGetLastError
Returns the error status for the last operation that failed.
失敗した最後の操作のためにエラー状況を返します。
WSAGetOverlappedResult
Retrieves the results of an overlapped operation on the specified socket.
指定されたソケットの上に重ね合わせられた操作の結果を検索します。
WSAGetQOSByName
Initializes a QOS structure based on a named template, or it supplies a buffer to retrieve an enumeration of the available template names.
構造が命名されたテンプレートに基づかせたか、またはそれが利用可能なテンプレート名の列挙を検索するためにバッファを提供するQOSを初期化します。
WSAGetServiceClassInfo
Retrieves the class information (schema) pertaining to a specified service class from a specified namespace provider.
指定された名前空間プロバイダーから指定されたサービスのクラスに関係しながら、クラス情報(図式)を検索します。
WSAGetServiceClassNameByClassId
Retrieves the name of the service associated with the specified type.
指定されたタイプに関連しているサービスの名前を検索します。
WSAHtonl
Converts a u_long from host byte order to network byte order.
_長い間、ホストバイトオーダーからネットワークバイトオーダーまでuを変換します。
WSAHtons
Converts a u_short from host byte order to network byte order.
ホストバイトオーダーからネットワークバイトオーダーまで_急にuを変換します。
WSAInstallServiceClass
Registers a service class schema within a namespace.
名前空間の中にサービスクラス図式を登録します。
WSAIoctl
Controls the mode of a socket.
ソケットのモードを制御します。
WSAJoinLeaf
Joins a leaf node into a multipoint session, exchanges connect data, and specifies needed quality of service based on the specified structures.
接合、多点セッションまでの葉のノード、交換はデータを接続して、指定された構造に基づく必要なサービスの質を指定します。
WSALookupServiceBegin
Initiates a client query that is constrained by the information contained within a WSAQUERYSET structure.
WSAQUERYSET構造の中に含まれた情報によって抑制されるクライアント質問を開始します。
WSALookupServiceEnd
Frees the handle used by previous calls to WSALookupServiceBegin and WSALookupServiceNext.
WSALookupServiceBeginとWSALookupServiceNextへの前の呼び出しで使用されるハンドルを解放します。
WSALookupServiceNext
Retrieve the requested service information.
要求されたサービス情報を検索してください。
WSANSPIoctl
Developers to make I/O control calls to a registered namespace.
入出力をする開発者は登録された名前空間に呼び出しを制御します。
WSANtohl
Converts a u_long from network byte order to host byte order.
_長い間、ネットワークバイトオーダーからホストバイトオーダーまでuを変換します。
WSANtohs
Converts a u_short from network byte order to host byte order.
ネットワークバイトオーダーからホストバイトオーダーまで_急にuを変換します。
WSAProviderConfigChange
Notifies the application when the provider configuration is changed.
プロバイダー構成を変えるとき、アプリケーションに通知します。
WSARecv
Receives data from a connected socket.
接続ソケットからデータを受け取ります。
WSARecvDisconnect
Terminates reception on a socket, and retrieves the disconnect data if the socket is connection oriented.
ソケットでレセプションを終えて、ソケットが適応する接続であるなら分離データを検索します。
WSARecvEx
Receives data from a connected socket.
接続ソケットからデータを受け取ります。
WSARecvFrom
Receives a datagram and stores the source address.
データグラムを受けて、ソースアドレスを保存します。
WSARecvMsg
Receives data and optional control information from connected and unconnected sockets.
接続されて無関係のソケットからデータと随意コントロール情報を受け取ります。
WSARemoveServiceClass
Permanently removes the service class schema from the registry.
永久に、登録からのサービスクラス図式は取り外されます。
WSAResetEvent
Resets the state of the specified event object to nonsignaled.
非合図されるのに指定されたイベントオブジェクトの状態をリセットします。
WSASend
Sends data on a connected socket.
データを接続ソケットに送ります。
WSASendDisconnect
Initiates termination of the connection for the socket and sends disconnect data.
ソケットのための接続の終了を開始して、分離データを送ります。
WSASendMsg
Sends data and optional control information from connected and unconnected sockets.
情報を接続されて無関係のソケットからデータと随意コントロールに送ります。
WSASendTo
Sends data to a specific destination, using overlapped I/O where applicable.
適切であるところで重ね合わせられた入出力を使用して、データを特定の目的地に送ります。
WSASetEvent
Sets the state of the specified event object to signaled.
合図されるのに指定されたイベントオブジェクトの状態を設定します。
WSASetLastError
Sets the error code.
エラーコードを設定します。
WSASetService
Registers or removes from the registry a service instance within one or more namespaces.
1つ以上の名前空間の中で登録からサービスインスタンスを登録するか、または取り除きます。
WSASocket
Creates a socket that is bound to a specific transport-service provider.
特定の輸送サービスプロバイダーに縛られるソケットを作成します。
WSAStartup Initiates use of WS2_32.DLL by a process.
プロセスはWS2_32.DLLの使用を開始します。
WSAStringToAddress
Converts a numeric string to a sockaddr structure.
数値ストリングをsockaddr構造に変換します。
WSAWaitForMultipleEvents
Returns either when one or all of the specified event objects are in the signaled state, or when the time-out interval expires.
指定されたイベントオブジェクトの1かすべてが合図された状態にあるか、またはタイムアウト間隔が期限が切れるときのリターン。