Merge pull request #9862 from zevv/posix-cmsg

Added CMSG_SPACE and CMSG_LEN macros to posix.nim
This commit is contained in:
Andreas Rumpf
2018-12-05 08:11:27 +01:00
committed by GitHub

View File

@@ -823,6 +823,12 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {.
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
importc, header: "<sys/socket.h>".}
proc CMSG_SPACE*(len: csize): csize {.
importc, header: "<sys/socket.h>".}
proc CMSG_LEN*(len: csize): csize {.
importc, header: "<sys/socket.h>".}
const
INVALID_SOCKET* = SocketHandle(-1)