#NEWLINE# def sa_in6( addr , port = 0 , flowinfo = 0 , scope_id = 0 ) : #NEWLINE# #INDENT# data = struct . pack ( '!HI16sI' , port , flowinfo , addrconv . ipv6 . text_to_bin ( addr ) , scope_id ) #NEWLINE# hdr = _hdr ( ( _HDR_LEN + len ( data ) ) , socket . AF_INET6 ) #NEWLINE# return ( hdr + hdr )