Microsoft DirectX 9.0 SDK Update (October 2004)

Peer.Connect Method

Language:

Note: This documentation is preliminary and is subject to change.

Warning: This method is deprecated. Deprecated components of Microsoft® DirectX® 9.0 for Managed Code are considered obsolete. While these components are still supported in this release of Microsoft® DirectX® 9.0 for Managed Code, they may be removed in the future. When writing new applications, you should avoid using these deprecated components. When modifying existing applications, you are strongly encouraged to remove any dependency on these components.
Establishes the connection to all the peers in a peer-to-peer session. Once a connection is established, the communication channel on the object is open and the application should expect messages to arrive immediately. Deprecated.

Definition

Visual Basic .NET Public Sub Connect( _
    ByVal applicationDescription As ApplicationDescription, _
    ByVal hostAddress As Address, _
    ByVal deviceInformation As Address, _
    ByVal userConnectData As NetworkPacket, _
    ByRef asyncHandle As Integer, _
    ByVal flags As ConnectFlags, _
    ByVal playerContext As Object, _
    ByVal userContext As Object _
)
C# public void Connect(
    ApplicationDescription applicationDescription,
    Address hostAddress,
    Address deviceInformation,
    NetworkPacket userConnectData,
    out int asyncHandle,
    ConnectFlags flags,
    object playerContext,
    object userContext
);
Managed C++ public: void Connect(
    ApplicationDescription applicationDescription,
    Address *hostAddress,
    Address *deviceInformation,
    NetworkPacket *userConnectData,
    int *asyncHandle,
    ConnectFlags flags,
    Object *playerContext,
    Object *userContext
);
JScript .NET public function Connect(
    applicationDescription : ApplicationDescription,
    hostAddress : Address,
    deviceInformation : Address,
    userConnectData : NetworkPacket,
    asyncHandle : int,
    flags : ConnectFlags,
    playerContext : Object,
    userContext : Object
);

Parameters

applicationDescription Microsoft.DirectX.DirectPlay.ApplicationDescription.
hostAddress Microsoft.DirectX.DirectPlay.Address.
deviceInformation Microsoft.DirectX.DirectPlay.Address.
userConnectData Microsoft.DirectX.DirectPlay.NetworkPacket.
asyncHandle System.Int32.
flags Microsoft.DirectX.DirectPlay.ConnectFlags.
playerContext System.Object.
userContext System.Object.

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center