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
a84ec519
Commit
a84ec519
authored
Jun 23, 1994
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify the meaning of address for those methods that or return addresses
parent
56013132
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
Doc/lib/libsocket.tex
Doc/lib/libsocket.tex
+10
-2
Doc/libsocket.tex
Doc/libsocket.tex
+10
-2
No files found.
Doc/lib/libsocket.tex
View file @
a84ec519
...
...
@@ -115,7 +115,8 @@ to the socket on the other end of the connection.
\end{funcdesc}
\begin{funcdesc}
{
bind
}{
address
}
Bind the socket to an address. The socket must not already be bound.
Bind the socket to
\var
{
address
}
. The socket must not already be bound.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
close
}{}
...
...
@@ -125,7 +126,8 @@ Sockets are automatically closed when they are garbage-collected.
\end{funcdesc}
\begin{funcdesc}
{
connect
}{
address
}
Connect to a remote socket.
Connect to a remote socket at
\var
{
address
}
.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
fileno
}{}
...
...
@@ -136,11 +138,15 @@ with \code{select}.
\begin{funcdesc}
{
getpeername
}{}
Return the remote address to which the socket is connected. This is
useful to find out the port number of a remote IP socket, for instance.
(The format of the address returned depends on the address family --
see above.)
\end{funcdesc}
\begin{funcdesc}
{
getsockname
}{}
Return the socket's own address. This is useful to find out the port
number of an IP socket, for instance.
(The format of the address returned depends on the address family --
see above.)
\end{funcdesc}
\begin{funcdesc}
{
getsockopt
}{
level
\,
optname
\,
buflen
}
...
...
@@ -182,6 +188,7 @@ Receive data from the socket. The return value is a pair
\code
{
(
\var
{
string
}
,
\var
{
address
}
)
}
where
\var
{
string
}
is a string
representing the data received and
\var
{
address
}
is the address of the
socket sending the data.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
send
}{
string
}
...
...
@@ -193,6 +200,7 @@ socket.
Send data to the socket. The socket should not be connected to a
remote socket, since the destination socket is specified by
\code
{
address
}
.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
setsockopt
}{
level
\,
optname
\,
value
}
...
...
Doc/libsocket.tex
View file @
a84ec519
...
...
@@ -115,7 +115,8 @@ to the socket on the other end of the connection.
\end{funcdesc}
\begin{funcdesc}
{
bind
}{
address
}
Bind the socket to an address. The socket must not already be bound.
Bind the socket to
\var
{
address
}
. The socket must not already be bound.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
close
}{}
...
...
@@ -125,7 +126,8 @@ Sockets are automatically closed when they are garbage-collected.
\end{funcdesc}
\begin{funcdesc}
{
connect
}{
address
}
Connect to a remote socket.
Connect to a remote socket at
\var
{
address
}
.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
fileno
}{}
...
...
@@ -136,11 +138,15 @@ with \code{select}.
\begin{funcdesc}
{
getpeername
}{}
Return the remote address to which the socket is connected. This is
useful to find out the port number of a remote IP socket, for instance.
(The format of the address returned depends on the address family --
see above.)
\end{funcdesc}
\begin{funcdesc}
{
getsockname
}{}
Return the socket's own address. This is useful to find out the port
number of an IP socket, for instance.
(The format of the address returned depends on the address family --
see above.)
\end{funcdesc}
\begin{funcdesc}
{
getsockopt
}{
level
\,
optname
\,
buflen
}
...
...
@@ -182,6 +188,7 @@ Receive data from the socket. The return value is a pair
\code
{
(
\var
{
string
}
,
\var
{
address
}
)
}
where
\var
{
string
}
is a string
representing the data received and
\var
{
address
}
is the address of the
socket sending the data.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
send
}{
string
}
...
...
@@ -193,6 +200,7 @@ socket.
Send data to the socket. The socket should not be connected to a
remote socket, since the destination socket is specified by
\code
{
address
}
.
(The format of
\var
{
address
}
depends on the address family -- see above.)
\end{funcdesc}
\begin{funcdesc}
{
setsockopt
}{
level
\,
optname
\,
value
}
...
...
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