Logo Search packages:      
Sourcecode: g2ipmsg version File versions  Download package

static int ipmsg_send_br_isgetlist2 ( const udp_con_t *  con,
const ipmsg_send_flags_t  flags 
) [static]

IPMSGのIPMSG_BR_ISGETLIST2を送出する.

Parameters:
[in] flags 送信フラグ
Return values:
0 正常終了
-EINVAL 引数異常
Note:
IPMSG_BR_ISGETLIST2 パケット形式
  • メッセージ部: 空文
  • 拡張部 : なし

Attention:
内部リンケージ

Definition at line 417 of file protocol.c.

References IPMSG_PROTOCOL_ENTRY_PKT_ADDR, IPMSG_PROTOCOL_MSG_NO_EXTENSION, IPMSG_PROTOCOL_MSG_NO_MESSAGE, IPMSG_PROTOCOL_PKTNUM_AUTO, and ipmsg_send_packet().

Referenced by ipmsg_send_br_entry().

                                                                              {
      int                         rc = 0;
      ipmsg_send_flags_t local_flags = 0;

      if (con == NULL) {
            rc = -EINVAL;
            goto error_out;
      }

      /*
       * フラグを設定する
       */
      local_flags  = flags;
      local_flags |= hostinfo_get_normal_entry_flags();
      local_flags |= IPMSG_BR_ISGETLIST2;

      /*
       * パケット送信
       */
      rc = ipmsg_send_packet(con, IPMSG_PROTOCOL_ENTRY_PKT_ADDR, 
          IPMSG_PROTOCOL_PKTNUM_AUTO, local_flags, 
          IPMSG_PROTOCOL_MSG_NO_MESSAGE, IPMSG_PROTOCOL_MSG_NO_EXTENSION);

      if (rc != 0) {
            goto error_out;
      }

      rc = 0; /* 正常終了 */

error_out:
      return rc;
}


Generated by  Doxygen 1.6.0   Back to index