Added CMSG_SPACE and CMSG_LEN macros to posix.nim
This commit is contained in:
parent
f6c5c636bb
commit
c37fdbf843
1 changed files with 6 additions and 0 deletions
|
|
@ -824,6 +824,12 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {.
|
||||||
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
|
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
|
||||||
importc, header: "<sys/socket.h>".}
|
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
|
const
|
||||||
INVALID_SOCKET* = SocketHandle(-1)
|
INVALID_SOCKET* = SocketHandle(-1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue