Socket.family readonly property



The Socket.family property gets the address family "ipv4" or "ipv6"

Example

local net = require "net" local socket = net.Socket("google.com", 80) -- outputs "ipv4" print("socket.family = "..socket.family)