what does 0 indicate in socket() system call?

后端 未结 3 2145
旧时难觅i
旧时难觅i 2021-02-09 06:46

what 0 indicates in following line? what are other flags i can use?

server = socket(AF_UNIX, SOCK_STREAM, 0)
3条回答
  •  爱一瞬间的悲伤
    2021-02-09 07:17

    The best thing to do here is read the man page. This document states that the third parameter is the protocol, which in this case is SOCK_STREAM but can be others.

提交回复
热议问题