March 2003
Intermediate to advanced
656 pages
39h 30m
English
sendto
s.sendto(string,(host,port))Sends the bytes of string on the socket to
the destination host and
port, and returns the number
n of bytes sent. Useful with
datagram-oriented sockets, which can send data to various
destinations. You must not have previously called method
s
.bind.
n may be lower than
len(
string
);
your program must check, and resend the unsent substring
string
[
n
:]
if non-empty.
Read now
Unlock full access