Added CMSG_SPACE and CMSG_LEN macros to posix.nim

This commit is contained in:
Ico Doornekamp
2018-12-04 21:16:15 +01:00
parent f6c5c636bb
commit c37fdbf843

View File

@@ -824,6 +824,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)