Skip to content

Instantly share code, notes, and snippets.

@Milek7
Last active December 9, 2020 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Milek7/b1aa45186da6d0a005e7dc06302d6f79 to your computer and use it in GitHub Desktop.
Save Milek7/b1aa45186da6d0a005e7dc06302d6f79 to your computer and use it in GitHub Desktop.
var addrlen_val = (sock.family === {{{ cDefine('AF_INET6') }}}) ?
{{{ C_STRUCTS.sockaddr_in6.__size__ }}} :
{{{ C_STRUCTS.sockaddr_in.__size__ }}};
{{{ makeSetValue('addrlen', 0, 'addrlen_val', 'i32') }}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment