Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions Lib/asyncio/selector_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,14 +586,10 @@ def _sock_sendall(self, fut, sock, view, pos):
pos[0] = start

async def sock_sendto(self, sock, data, address):
"""Send data to the socket.
"""Send a datagram from sock to address.

The socket must be connected to a remote socket. This method
continues to send data from data until either all data has been
sent or an error occurs. None is returned on success. On error,
an exception is raised, and there is no way to determine how much
data, if any, was successfully processed by the receiving end of
the connection.
The socket does not have to be connected. This method sends the
whole datagram in a single call. Return the number of bytes sent.
"""
base_events._check_ssl_socket(sock)
if self._debug and sock.gettimeout() != 0:
Expand Down
Loading