Get an interface that can be used like a UDP port to send/receive
datagrams to a FakeIP address. This is intended to make it easy
to port existing UDP-based code to take advantage of SDR.
idxFakeServerPort refers to the *index* of the port allocated using
BeginAsyncRequestFakeIP and is used to create "server" ports. You may
call this before the allocation has completed. However, any attempts
to send packets will fail until the allocation has succeeded. When
the peer receives packets sent from this interface, the from address
of the packet will be the globally-unique FakeIP. If you call this
function multiple times and pass the same (nonnegative) fake port index,
the same object will be returned, and this object is not reference counted.
To create a "client" port (e.g. the equivalent of an ephemeral UDP port)
pass -1. In this case, a distinct object will be returned for each call.
When the peer receives packets sent from this interface, the peer will
assign a FakeIP from its own locally-controlled namespace.
Get an interface that can be used like a UDP port to send/receive datagrams to a FakeIP address. This is intended to make it easy to port existing UDP-based code to take advantage of SDR.
idxFakeServerPort refers to the *index* of the port allocated using BeginAsyncRequestFakeIP and is used to create "server" ports. You may call this before the allocation has completed. However, any attempts to send packets will fail until the allocation has succeeded. When the peer receives packets sent from this interface, the from address of the packet will be the globally-unique FakeIP. If you call this function multiple times and pass the same (nonnegative) fake port index, the same object will be returned, and this object is not reference counted.
To create a "client" port (e.g. the equivalent of an ephemeral UDP port) pass -1. In this case, a distinct object will be returned for each call. When the peer receives packets sent from this interface, the peer will assign a FakeIP from its own locally-controlled namespace.