def sendmsg(socket, data, ancillary=[], flags=0):
 if _PY3:
  return socket.sendmsg([data], ancillary, flags)
 else:
  return send1msg(socket.fileno(), data, flags, ancillary)

def sendmsg ( socket , data , ancillary = [ ] , flags = 0 ) : if _PY3 : return socket . sendmsg ( [ data ] , ancillary , flags ) else : return send1msg ( socket . fileno ( ) , data , flags , ancillary )
send a message on a socket .