RTI Connext DDS Micro C API  Version 4.1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
NETIO Interface API

Data Structures

struct  NETIO_Interface
 Base-class definition for all NETIO interfaces. More...
struct  NETIO_InterfaceI

Macros

#define NETIO_Interface_receive(self_, src_, dst_, p_)
 <<eXtension>> <<cert>> Call receive on a NETIO_Interface.

Typedefs

typedef struct NETIO_Interface NETIO_Interface_T
typedef RTI_BOOL(* NETIO_Interface_sendFunc )(NETIO_Interface_T *self, struct NETIO_Interface *source, struct NETIO_Address *destination, NETIO_Packet_T *packet)
 Definition of the NETIO_InterfaceI send method.
typedef RTI_BOOL(* NETIO_Interface_receiveFunc )(NETIO_Interface_T *netio_intf, struct NETIO_Address *src_addr, struct NETIO_Address *dst_addr, NETIO_Packet_T *packet)
 Definition of the NETIO_InterfaceI receive method.
typedef RTI_BOOL(* NETIO_Interface_reserve_addressFunc )(NETIO_Interface_T *self, struct NETIO_AddressSeq *req_address, struct NETIO_AddressSeq *rsvd_address, struct NETIOBindProperty *property)
 <<eXtension>> <<cert>> Definition of the NETIO_InterfaceI reserve_address method
typedef RTI_BOOL(* NETIO_Interface_release_addressFunc )(NETIO_Interface_T *self, struct NETIO_Address *src_addr)
 <<eXtension>> <<cert>> Definition of the NETIO_InterfaceI release_address method

Detailed Description


Macro Definition Documentation

#define NETIO_Interface_receive (   self_,
  src_,
  dst_,
  p_ 
)
Value:
((struct NETIO_InterfaceI*)(\
(self_)->_parent._intf))->receive(self_,src_,dst_,p_)

<<eXtension>> <<cert>> Call receive on a NETIO_Interface.

A NETIO interface receives data from a downstream interface. The data can be in different protocol formats. Depending on the downstream protocol different actions may be taken, but semantically it does not matter where data is coming from. The receive interface is synchronous, all processing takes place in the context of the downstream receive context, such as a thread.

Parameters:
[in]self_The interface receiving data
[in]src_The source address of the data
[in]dst_The destination address of the data
[in]p_A NETIO_Packet with the payload
Returns:
RTI_TRUE on success, RTI_FALSE on failure

Typedef Documentation

<<eXtension>> <<cert>> Abstract NETIO Interface type.

typedef RTI_BOOL(* NETIO_Interface_sendFunc)(NETIO_Interface_T *self, struct NETIO_Interface *source, struct NETIO_Address *destination, NETIO_Packet_T *packet)

Definition of the NETIO_InterfaceI send method.

<<eXtension>> <<cert>> NETIO_Interface resolve_address function.

Parameters:
[in]selfNETIO interface to send from
[in]sourceThe source interface for the packet
[in]destinationThe destination address for the packet
[in]packetThe packet to send
Returns:
RTI_TRUE on success, RTI_FALSE on failure
typedef RTI_BOOL(* NETIO_Interface_receiveFunc)(NETIO_Interface_T *netio_intf, struct NETIO_Address *src_addr, struct NETIO_Address *dst_addr, NETIO_Packet_T *packet)

Definition of the NETIO_InterfaceI receive method.

<<eXtension>> <<cert>> NETIO_Interface send function.

Parameters:
[in]netio_intfNETIO interface to receive in
[in]src_addrThe source address of the packet
[in]dst_addrThe destination address for the packet
[in]packetThe forwarded packet from downstream
Returns:
RTI_TRUE on success, RTI_FALSE on failure

See Also NETIO_Interface_receive, NETIO_InterfaceI

typedef RTI_BOOL(* NETIO_Interface_reserve_addressFunc)(NETIO_Interface_T *self, struct NETIO_AddressSeq *req_address, struct NETIO_AddressSeq *rsvd_address, struct NETIOBindProperty *property)

<<eXtension>> <<cert>> Definition of the NETIO_InterfaceI reserve_address method

Parameters:
[in]selfNETIO interface to reserve addresses on
[in]req_addressList of requested addresses
[in,out]rsvd_addressThe downstream interface
[in]propertyProperties to use to listen on the reserved addresses
Returns:
RTI_TRUE on success, RTI_FALSE on failure.
typedef RTI_BOOL(* NETIO_Interface_release_addressFunc)(NETIO_Interface_T *self, struct NETIO_Address *src_addr)

<<eXtension>> <<cert>> Definition of the NETIO_InterfaceI release_address method

Parameters:
[in]selfNETIO interface to release addresses on
[in]src_addrAddress to release
Returns:
RTI_TRUE on success, RTI_FALSE on failure.

RTI Connext DDS Micro C API Version 4.1.0 Copyright © Sun Dec 8 2024 Real-Time Innovations, Inc