In general, communication using this library can be Routing Engine to Routing Engine, Routing Engine to Multiservices PIC, or Multiservices PIC to Multiservices PIC.
memset(¶ms, 0, sizeof(pconn_client_params_t)); params.pconn_port = JNX_GW_DATA_PORT; params.pconn_peer_info.ppi_peer_type = pdata_pic->peer_type; params.pconn_peer_info.ppi_fpc_slot = pdata_pic->fpc_id; params.pconn_peer_info.ppi_pic_slot = pdata_pic->pic_id; params.pconn_event_handler = jnx_gw_ctrl_data_event_handler; if (!(pdata_pic->pic_data_conn = pconn_client_connect_async(¶ms, jnx_gw_ctrl.ctxt, jnx_gw_ctrl_data_msg_handler, (void *)pdata_pic))) {
pconn_client_connect_async()
to connect to the data PIC and passes the message handler function jnx_gw_ctrl_data_msg_handler()
to read messages from the PIC:
if (!(pdata_pic->pic_data_conn = pconn_client_connect_async ( ¶ms, jnx_gw_ctrl.ctxt, jnx_gw_ctrl_data_msg_handler, (void *)pdata_pic))) ...