VxWorks中有哪些类型的套接字?

时间:2008-10-01 13:01:40

标签: sockets vxworks

Vxworks支持标准IP v4和IP v6套接字,但套接字也可用于其他目的 还有哪些其他类型的插座?

1 个答案:

答案 0 :(得分:1)

您可以使用的套接字类型取决于您在其中创建套接字的通信域。 列出的套接字类型是:

SOCK_DGRAM      unreliable  not sequenced  possibly duplicated  message
SOCK_STREAM     reliable      sequenced       non-duplicated    stream
SOCK_SEQPACKET  reliable      sequenced       non-duplicated    message
SOCK_RDM        reliable    not sequenced  possibly duplicated  message

SOCK_RAW        protocol/interface dependent, access to internal protocol info

VxWorks还定义了以下通信域:

AF_INET     IPv4
AF_INT6     IPv6
AF_ROUTE    routing
AF_LOCAL    local Inter-process Communications
AF_TIPC     Transparent Inter-Process Communications
AF_MOBILITY Mobile IPv6 

以下是各种域支持的各种套接字列表:

AF_INET     SOCK_DGRAM, SOCK_STREAM, SOCK_RAW
AF_INT6     SOCK_DGRAM, SOCK_STREAM, SOCK_RAW
AF_ROUTE    SOCK_RAW
AF_LOCAL    SOCK_SEQPACKET
AF_TIPC     SOCK_SEQPACKET, SOCK_RDM, SOCK_DGRAM, SOCK_STREAM
AF_MOBILITY don't know