|
DirectPlay is a deprecated API that was part of Microsoft's DirectX API. DirectPlay is a network communication library intended for computer game development, although its general nature certainly allows it to be used for other purposes. DirectPlay is a high-level software interface between applications and communication services that makes it easy to connect games over the Internet, a modem link, or a network. DirectPlay features a set of tools that allow players to find game sessions and sites to manage the flow of information between hosts and players. It provides a way for applications to communicate with each other, regardless of the underlying online service or protocol. DirectPlay also resolves many connectivity issues, such as NAT. DirectPlay, like the rest of DirectX, runs in COM and it is accessed through COM (Component Object Model) interfaces. By default, DirectPlay uses multi-threaded programming techniques and requires careful thought to avoid the usual threading issues. Since DirectX version 9, this issue can be alleviated at the expense of efficiency. ==Networking model== Under the hood, DirectPlay is built on the User Datagram Protocol (UDP) to allow it speedy communication with other DirectPlay applications. DirectPlay sits on layer 4 and 5 of the OSI model. *On layer 4, DirectPlay can handle the following tasks if requested by the application: * *Message ordering, which ensures that data arrives in the same order it was sent. * *Message reliability, which ensures that data is guaranteed to arrive. * *Message flow control, which ensures that data is only sent at the rate the receiver can receive it. *On layer 5, DirectPlay always handles the following tasks: * *Connection initiation and termination. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「DirectPlay」の詳細全文を読む スポンサード リンク
|