]> granicus.if.org Git - python/commitdiff
Patch #1682878: the new socket methods are recv_into and recvfrom_into, not *_buf.
authorGeorg Brandl <georg@python.org>
Sun, 18 Mar 2007 08:25:00 +0000 (08:25 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 18 Mar 2007 08:25:00 +0000 (08:25 +0000)
Doc/lib/libsocket.tex
Doc/whatsnew/whatsnew25.tex

index 5ba43101c3453071673c39b437abdb6b66683b84..e9c853af8ef9c750569f4bb10174aeb633b42bf2 100644 (file)
@@ -584,6 +584,7 @@ sending the data.  See the \UNIX{} manual page
 \manpage{recv}{2} for the meaning of the optional argument
 \var{flags}; it defaults to zero.  (The format of \var{address}
 depends on the address family --- see above.)
+\versionadded{2.5}
 \end{methoddesc}
 
 \begin{methoddesc}[socket]{recv_into}{buffer\optional{, nbytes\optional{, flags}}}
@@ -593,6 +594,7 @@ If \var{nbytes} is not specified (or 0),
 receive up to the size available in the given buffer.
 See the \UNIX{} manual page \manpage{recv}{2} for the meaning of the
 optional argument \var{flags}; it defaults to zero.
+\versionadded{2.5}
 \end{methoddesc}
 
 \begin{methoddesc}[socket]{send}{string\optional{, flags}}
index fce392736e9e1c0a13231ebe1732664bbb303faa..85d5a2a5fad1c4e0cd75fe0ee6b4afc08d2e67e5 100644 (file)
@@ -1704,8 +1704,8 @@ article about them is at \url{http://www.linuxjournal.com/article/7356}.
 In Python code, netlink addresses are represented as a tuple of 2 integers, 
 \code{(\var{pid}, \var{group_mask})}.
 
-Two new methods on socket objects, \method{recv_buf(\var{buffer})} and
-\method{recvfrom_buf(\var{buffer})}, store the received data in an object 
+Two new methods on socket objects, \method{recv_into(\var{buffer})} and
+\method{recvfrom_into(\var{buffer})}, store the received data in an object 
 that supports the buffer protocol instead of returning the data as a
 string.  This means you can put the data directly into an array or a
 memory-mapped file.