Send a message on a socket.

ParameterssocketThe socket to send the message on. (type: socket.socket)
dataBytes to write to the socket. (type: bytes)
ancillaryExtra data to send over the socket outside of the normal datagram or stream mechanism. By default no ancillary data is sent. (type: list of tuple of int, int, and bytes.)
flagsFlags to affect how the message is sent. See the MSG_ constants in the sendmsg(2) manual page. By default no flags are set. (type: int)
ReturnsThe return value of the underlying syscall, if it succeeds.
API Documentation for Twisted, generated by pydoctor at 2018-10-15 19:29:43.