NET_PRES_TransOpen Type

C

typedef NET_PRES_SKT_HANDLE_T (* NET_PRES_TransOpen)(NET_PRES_TRANS_ADDRESS_TYPE addType, NET_PRES_SKT_PORT_T port, NET_PRES_ADDRESS * address); 

Returns

  • NET_PRES_INVALID_SOCKET - No sockets of the specified type were available to be opened.

  • NET_PRES_SKT_HANDLE_T handle - Returned when NET_PRES_INVALID_SOCKET is returned. Save this handle and use it when calling all other presentation socket APIs.

Description

Transport Layer Open Function Pointer Prototype This function is called by the presentation layer when an application wants to open a socket.

Preconditions

Transport layer must be initialized.

Parameters

ParametersDescription
addTypeThe type of address being used. This is passed unaltered to the transport layer.
portThe port to listen or to send to. This is passed unaltered to the transport layer.
addressThe address to use. This is passed unaltered to the transport layer.