network programming and sockets af_unix for unix domain socketsthe address is string containing path name--for example'/tmp/myserveraf_packet for the linux packet protocolthe address is tuple (deviceprotonum [pkttype [hatype [addr]]]where device is string specifying the device name such as "eth and protonum is an integer specifying the ethernet protocol number as defined in the header file ( for an ip packetpacket_type is an integer specifying the packet type and is one of the following constantsconstant description packet_host packet_broadcast packet_multicast packet_otherhost packet address to the local host physical layer broadcast packet physical layer multicast packet destined for different hostbut caught by device driver in promiscuous mode packet originating on the machinebut which has looped back to packet socket packet_outgoing hatype is an integer specifying the hardware address type as used in the arp protocol and defined in the header file addr is byte string containing hardware addressthe structure of which depends on the value of hatype for ethernetaddr will be -byte string holding the hardware address af_netlink for the linux netlink protocolthe address is tuple (pidgroupswhere pid and groups are both unsigned integers pid is the unicast address of the socket and is usually the same as the process id of the process that created the socket or for the kernel groups is bit mask used to specify multicast groups to join refer to the netlink documentation for more information af_bluetooth bluetooth addresses depend on the protocol being used for capthe address is tuple (addrpsmwhere addr is string such as ' : : : : :aband psm is an unsigned integer for rfcommthe address is tuple (addrchannelwhere addr is an address string and channel is an integer for hcithe address is -tuple (deviceno,where deviceno is an integer device number for scothe address is string host the constant bdaddr_any represents any address and is string ' : : : : : the constant bdaddr_local is string ' : : :ff:ff:ffaf_tipc for tipc socketsthe address is tuple (addr_typev [scope]where all fields are unsigned integers addr_type is one of the following valueswhich also determines the values of and lib fl ff