This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/66AK2H12:是否支持 INADDR_Loopback?

Guru**** 3001220 points

Other Parts Discussed in Thread: SYSBIOS

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/922927/ccs-66ak2h12-is-inaddr_loopback-supported

器件型号:66AK2H12
Thread 中讨论的其他器件:SYSBIOS

工具/软件:Code Composer Studio

CCSv9、NDK 3.61、SYSBIOS 6.76、GNU 7.2

我想使用 BSD 型管道、但它们似乎不受支持。 为此、我想创建一对套接字、并通过在其中一个套接字上进行绑定和收听以及与另一个套接字进行连接来连接它们。 因此我想使用 sin。sin。addr.s_addr = INADDR_LOOPACK。 但我找不到 INADDR_LOOPACK。

是否支持回路接口?

Mike

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    我在 inc\usertype.h 中找到:

    /*------------------ *
    /* IP Address Related 等于*/
    #define IN_CLASSA (x)((((uint32_t)(x)& 0x00000080)=0)
    #define IN_ClassB (x)(((uint32_t)(x)& 0x000000c0)=0x00000080)
    #define IN_CLASSC (x)(((uint32_t)(x)& 0x000000e0)= 0x000000c0)
    #define IN_CLASSD (x)(((uint32_t)(x)& 0x000000f0)= 0x000000e0)
    #define IN_MULTING (x) IN_CLASSD (x)
    #define IN_实验性(x)((((uint32_t)(x)& 0x000000f0)= 0x000000f0)
    #define IN_LOoopback (x)(((uint32_t)(x)& 0x000000ff)=0x0000007f)
    #define INADDR_ANY 0x00000000 /* 0.0.0.0 */
    #define INADDR_broadcast 0xFFFF /* 255.255.255.255 */

    此致、Eric