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
8df3637f
Commit
8df3637f
authored
Feb 27, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes refs to SO_* symbols
parent
61d34f47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+13
-12
Doc/libsocket.tex
Doc/libsocket.tex
+13
-12
No files found.
Doc/lib/libsocket.tex
View file @
8df3637f
...
...
@@ -187,14 +187,14 @@ see above.)
\begin{funcdesc}
{
getsockopt
}{
level
\,
optname
\,
buflen
}
Return the value of the given socket option (see the
\UNIX
{}
man page
{
\it
getsockopt
}
(2)). The needed symbolic constants are defined in
module
SOCKET. If the optional third argument is absent, an integer option
is assumed and its integer value is returned by the function. If
\var
{
buflen
}
is present, it specifies the maximum length of the buffer used
t
o receive the option in, and this buffer is returned as a string.
It's up to the caller to decode the contents of the buffer (see th
e
optional built-in module
\code
{
struct
}
for a way to decode C structures
encoded as strings).
{
\it
getsockopt
}
(2)). The needed symbolic constants are defined in
the
\code
{
socket
}
module (
\code
{
SO
_
*
}
etc.). If the optional third
argument is absent, an integer option is assumed and its integer value
is returned by the function. If
\var
{
buflen
}
is present, it specifies
t
he maximum length of the buffer used to receive the option in, and
this buffer is returned as a string. It's up to the caller to decod
e
the contents of the buffer (see the optional built-in module
\code
{
struct
}
for a way to decode C structures
encoded as strings).
\end{funcdesc}
\begin{funcdesc}
{
listen
}{
backlog
}
...
...
@@ -250,10 +250,11 @@ raised; in blocking mode, the calls block until they can proceed.
\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
\code
{
SOCKET
}
. The value can be an integer or a string representing a
buffer. In the latter case it is up to the caller to ensure that the
string contains the proper bits (see the optional built-in module
{
\it
setsockopt
}
(2)). The needed symbolic constants are defined in
the
\code
{
socket
}
module (
\code
{
SO
_
*
}
etc.). The value can be an
integer or a string representing a buffer. In the latter case it is
up to the caller to ensure that the string contains the proper bits
(see the optional built-in module
\code
{
struct
}
for a way to encode C structures as strings).
\end{funcdesc}
...
...
Doc/libsocket.tex
View file @
8df3637f
...
...
@@ -187,14 +187,14 @@ see above.)
\begin{funcdesc}
{
getsockopt
}{
level
\,
optname
\,
buflen
}
Return the value of the given socket option (see the
\UNIX
{}
man page
{
\it
getsockopt
}
(2)). The needed symbolic constants are defined in
module
SOCKET. If the optional third argument is absent, an integer option
is assumed and its integer value is returned by the function. If
\var
{
buflen
}
is present, it specifies the maximum length of the buffer used
t
o receive the option in, and this buffer is returned as a string.
It's up to the caller to decode the contents of the buffer (see th
e
optional built-in module
\code
{
struct
}
for a way to decode C structures
encoded as strings).
{
\it
getsockopt
}
(2)). The needed symbolic constants are defined in
the
\code
{
socket
}
module (
\code
{
SO
_
*
}
etc.). If the optional third
argument is absent, an integer option is assumed and its integer value
is returned by the function. If
\var
{
buflen
}
is present, it specifies
t
he maximum length of the buffer used to receive the option in, and
this buffer is returned as a string. It's up to the caller to decod
e
the contents of the buffer (see the optional built-in module
\code
{
struct
}
for a way to decode C structures
encoded as strings).
\end{funcdesc}
\begin{funcdesc}
{
listen
}{
backlog
}
...
...
@@ -250,10 +250,11 @@ raised; in blocking mode, the calls block until they can proceed.
\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
\code
{
SOCKET
}
. The value can be an integer or a string representing a
buffer. In the latter case it is up to the caller to ensure that the
string contains the proper bits (see the optional built-in module
{
\it
setsockopt
}
(2)). The needed symbolic constants are defined in
the
\code
{
socket
}
module (
\code
{
SO
_
*
}
etc.). The value can be an
integer or a string representing a buffer. In the latter case it is
up to the caller to ensure that the string contains the proper bits
(see the optional built-in module
\code
{
struct
}
for a way to encode C structures as strings).
\end{funcdesc}
...
...
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