Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0e01945b
Commit
0e01945b
authored
Mar 18, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1682878: the new socket methods are recv_into and recvfrom_into, not *_buf.
parent
91c4702a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+2
-0
Doc/whatsnew/whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+2
-2
No files found.
Doc/lib/libsocket.tex
View file @
0e01945b
...
...
@@ -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
}}
...
...
Doc/whatsnew/whatsnew25.tex
View file @
0e01945b
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment