다음을 통해 공유


LogConnectionCreation (Windows CE 5.0)

Send Feedback

This function is used by client dynamic-link libraries (DLLs) that monitor connection creation.

typedef VOID  (*PNAT_LOG_CONNECTION_CREATION) (DWORDLocalAddress,DWORDRemoteAddress,USHORTLocalPort,USHORTRemotePort,UCHARProtocol,BOOLEANInboundConnection);

Parameters

  • LocalAddress
    [in] The local network address of the computer or networked device for which the connection is associated. The value is provided in TCP/IP network byte order format.
  • RemoteAddress
    [in] The remote network address of the computer or networked device for which the connection is associated. The value is provided in TCP/IP network byte order format.
  • LocalPort
    [in] The port number on the local computer or networked device to which the connection is associated. The value is provided in TCP/IP network byte order format.
  • RemotePort
    [in] The port number on the remote computer or networked device to which the connection is associated. The value is provided in TCP/IP network byte order format.
  • Protocol
    [in] The network protocol (TCP, UDP) for this connection. Protocol is indicated by one of the NAT_PROTOCOL * flags listed in IPNat.h.
  • InboundConnection
    [in] Boolean; indicates whether this connection was initiated by an external computer or other device.

Return Values

None.

Remarks

This callback is called when a new network address translation (NAT) connection is created. It provides the protocol, ports, and addresses of both the local device, on the internal or private network, and the remote device, on the public network.

**Note   **This function is on the critical path for NAT, and therefore must return quickly to prevent degradation of performance.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Natedit.h.
Link Library: Coredll.dll.

See Also

LogDroppedPacket | LogConnectionDeletion | LogInit

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.