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
fcc51767
Commit
fcc51767
authored
Jan 27, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update signature of the socket constructor
(could someone backport this to Python 2.3.x please?)
parent
76beca95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+7
-5
No files found.
Doc/lib/libsocket.tex
View file @
fcc51767
...
...
@@ -276,12 +276,14 @@ for that service. The protocol name should be \code{'tcp'} or
\code
{
'udp'
}
.
\end{funcdesc}
\begin{funcdesc}
{
socket
}{
family, type
\optional
{
, proto
}}
\begin{funcdesc}
{
socket
}{
\optional
{
family
\optional
{
,
type
\optional
{
, proto
}}}}
Create a new socket using the given address family, socket type and
protocol number. The address family should be
\constant
{
AF
_
INET
}
,
\constant
{
AF
_
INET6
}
or
\constant
{
AF
_
UNIX
}
. The socket type should be
\constant
{
SOCK
_
STREAM
}
,
\constant
{
SOCK
_
DGRAM
}
or perhaps one of the other
\samp
{
SOCK
_}
constants.
The protocol number is usually zero and may be omitted in that case.
protocol number. The address family should be
\constant
{
AF
_
INET
}
(the
default),
\constant
{
AF
_
INET6
}
or
\constant
{
AF
_
UNIX
}
. The socket type
should be
\constant
{
SOCK
_
STREAM
}
(the default),
\constant
{
SOCK
_
DGRAM
}
or perhaps one of the other
\samp
{
SOCK
_}
constants. The protocol
number is usually zero and may be omitted in that case.
\end{funcdesc}
\begin{funcdesc}
{
ssl
}{
sock
\optional
{
, keyfile, certfile
}}
...
...
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