Share via


LogConnectionCreation (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

typedef VOID  (*PNAT_LOG_CONNECTION_CREATION) (
  DWORD LocalAddress,
  DWORD RemoteAddress,
  USHORT LocalPort,
  USHORT RemotePort,
  UCHAR Protocol,
  BOOLEAN InboundConnection
);

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 Value

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

Header natedit.h
Library coredll.dll
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

Network Address Translation Functions
LogDroppedPacket
LogConnectionDeletion
LogInit