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
5f917d8b
Commit
5f917d8b
authored
Sep 07, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Tommy Burnette's setblocking() method
parent
b6d79cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+9
-0
Doc/libsocket.tex
Doc/libsocket.tex
+9
-0
No files found.
Doc/lib/libsocket.tex
View file @
5f917d8b
...
...
@@ -214,6 +214,15 @@ remote socket, since the destination socket is specified by
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
setblocking
}{
flag
}
Set blocking or non-blocking mode of the socket: if
\var
{
flag
}
is 0,
the socket is set to non-blocking, else to blocking mode. Initially
all sockets are in blocking mode. In non-blocking mode, if a
\code
{
recv
}
call doesn't find any data, or if a
\code
{
send
}
call can't
immediately dispose of the data, a
\code
{
socket.error
}
exception is
raised; in blocking mode, the calls block until they can proceed.
\end{funcdesc}
\begin{funcdesc}
{
setsockopt
}{
level
\,
optname
\,
value
}
Set the value of the given socket option (see the
\UNIX
{}
man page
{
\it
setsockopt
}
(2)). The needed symbolic constants are defined in module
...
...
Doc/libsocket.tex
View file @
5f917d8b
...
...
@@ -214,6 +214,15 @@ remote socket, since the destination socket is specified by
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
setblocking
}{
flag
}
Set blocking or non-blocking mode of the socket: if
\var
{
flag
}
is 0,
the socket is set to non-blocking, else to blocking mode. Initially
all sockets are in blocking mode. In non-blocking mode, if a
\code
{
recv
}
call doesn't find any data, or if a
\code
{
send
}
call can't
immediately dispose of the data, a
\code
{
socket.error
}
exception is
raised; in blocking mode, the calls block until they can proceed.
\end{funcdesc}
\begin{funcdesc}
{
setsockopt
}{
level
\,
optname
\,
value
}
Set the value of the given socket option (see the
\UNIX
{}
man page
{
\it
setsockopt
}
(2)). The needed symbolic constants are defined in module
...
...
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