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
af5c0fc6
Commit
af5c0fc6
authored
Mar 17, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logical markup, consistency.
parent
46795006
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
Doc/libmacdnr.tex
Doc/libmacdnr.tex
+13
-13
Doc/mac/libmacdnr.tex
Doc/mac/libmacdnr.tex
+13
-13
No files found.
Doc/libmacdnr.tex
View file @
af5c0fc6
...
@@ -3,13 +3,12 @@
...
@@ -3,13 +3,12 @@
\bimodindex
{
macdnr
}
\bimodindex
{
macdnr
}
This module provides an interface to the Macintosh Domain Name
This module provides an interface to the Macintosh Domain Name
Resolver. It is usually used in conjunction with the
\
var
{
mactcp
}
Resolver. It is usually used in conjunction with the
\
module
{
mactcp
}
module, to map hostnames to IP-addresses. It may not be available in
module, to map hostnames to IP-addresses. It may not be available in
all Mac Python versions.
all Mac Python versions.
The
\
cod
e
{
macdnr
}
module defines the following functions:
The
\
modul
e
{
macdnr
}
module defines the following functions:
\setindexsubitem
{
(in module macdnr)
}
\begin{funcdesc}
{
Open
}{
\optional
{
filename
}}
\begin{funcdesc}
{
Open
}{
\optional
{
filename
}}
Open the domain name resolver extension. If
\var
{
filename
}
is given it
Open the domain name resolver extension. If
\var
{
filename
}
is given it
...
@@ -61,22 +60,23 @@ its attributes to obtain the information when it is.
...
@@ -61,22 +60,23 @@ its attributes to obtain the information when it is.
Alternatively, you can also reference the result attributes directly,
Alternatively, you can also reference the result attributes directly,
this will result in an implicit wait for the query to complete.
this will result in an implicit wait for the query to complete.
The
\var
{
rtnCode
}
and
\var
{
cname
}
attributes are always available, the
The
\member
{
rtnCode
}
and
\member
{
cname
}
attributes are always
others depend on the type of query (address, hinfo or mx).
available, the others depend on the type of query (address, hinfo or
mx).
\setindexsubitem
{
(dnr result
object
method)
}
\setindexsubitem
{
(dnr result method)
}
% Add args, as in {arg1
\, arg2 \optional{\
, arg3}}
% Add args, as in {arg1
, arg2 \optional{
, arg3}}
\begin{funcdesc}
{
wait
}{}
\begin{funcdesc}
{
wait
}{}
Wait for the query to complete.
Wait for the query to complete.
\end{funcdesc}
\end{funcdesc}
% Add args, as in {arg1
\, arg2 \optional{\
, arg3}}
% Add args, as in {arg1
, arg2 \optional{
, arg3}}
\begin{funcdesc}
{
isdone
}{}
\begin{funcdesc}
{
isdone
}{}
Return
1
if the query is complete.
Return
\code
{
1
}
if the query is complete.
\end{funcdesc}
\end{funcdesc}
\setindexsubitem
{
(dnr result
object
attribute)
}
\setindexsubitem
{
(dnr result attribute)
}
\begin{datadesc}
{
rtnCode
}
\begin{datadesc}
{
rtnCode
}
The error code returned by the query.
The error code returned by the query.
...
@@ -96,17 +96,17 @@ zero. Valid only for address queries.
...
@@ -96,17 +96,17 @@ zero. Valid only for address queries.
\begin{datadesc}
{
cpuType
}
\begin{datadesc}
{
cpuType
}
\dataline
{
osType
}
\dataline
{
osType
}
Textual strings giving the machine type an OS name. Valid for
hinfo
Textual strings giving the machine type an OS name. Valid for
``hinfo''
queries.
queries.
\end{datadesc}
\end{datadesc}
\begin{datadesc}
{
exchange
}
\begin{datadesc}
{
exchange
}
The name of a mail-exchanger host. Valid for
mx
queries.
The name of a mail-exchanger host. Valid for
``mx''
queries.
\end{datadesc}
\end{datadesc}
\begin{datadesc}
{
preference
}
\begin{datadesc}
{
preference
}
The preference of this mx record. Not too useful, since the Macintosh
The preference of this mx record. Not too useful, since the Macintosh
will only return a single mx record.
Mx
queries only.
will only return a single mx record.
Valid for ``mx''
queries only.
\end{datadesc}
\end{datadesc}
The simplest way to use the module to convert names to dotted-decimal
The simplest way to use the module to convert names to dotted-decimal
...
...
Doc/mac/libmacdnr.tex
View file @
af5c0fc6
...
@@ -3,13 +3,12 @@
...
@@ -3,13 +3,12 @@
\bimodindex
{
macdnr
}
\bimodindex
{
macdnr
}
This module provides an interface to the Macintosh Domain Name
This module provides an interface to the Macintosh Domain Name
Resolver. It is usually used in conjunction with the
\
var
{
mactcp
}
Resolver. It is usually used in conjunction with the
\
module
{
mactcp
}
module, to map hostnames to IP-addresses. It may not be available in
module, to map hostnames to IP-addresses. It may not be available in
all Mac Python versions.
all Mac Python versions.
The
\
cod
e
{
macdnr
}
module defines the following functions:
The
\
modul
e
{
macdnr
}
module defines the following functions:
\setindexsubitem
{
(in module macdnr)
}
\begin{funcdesc}
{
Open
}{
\optional
{
filename
}}
\begin{funcdesc}
{
Open
}{
\optional
{
filename
}}
Open the domain name resolver extension. If
\var
{
filename
}
is given it
Open the domain name resolver extension. If
\var
{
filename
}
is given it
...
@@ -61,22 +60,23 @@ its attributes to obtain the information when it is.
...
@@ -61,22 +60,23 @@ its attributes to obtain the information when it is.
Alternatively, you can also reference the result attributes directly,
Alternatively, you can also reference the result attributes directly,
this will result in an implicit wait for the query to complete.
this will result in an implicit wait for the query to complete.
The
\var
{
rtnCode
}
and
\var
{
cname
}
attributes are always available, the
The
\member
{
rtnCode
}
and
\member
{
cname
}
attributes are always
others depend on the type of query (address, hinfo or mx).
available, the others depend on the type of query (address, hinfo or
mx).
\setindexsubitem
{
(dnr result
object
method)
}
\setindexsubitem
{
(dnr result method)
}
% Add args, as in {arg1
\, arg2 \optional{\
, arg3}}
% Add args, as in {arg1
, arg2 \optional{
, arg3}}
\begin{funcdesc}
{
wait
}{}
\begin{funcdesc}
{
wait
}{}
Wait for the query to complete.
Wait for the query to complete.
\end{funcdesc}
\end{funcdesc}
% Add args, as in {arg1
\, arg2 \optional{\
, arg3}}
% Add args, as in {arg1
, arg2 \optional{
, arg3}}
\begin{funcdesc}
{
isdone
}{}
\begin{funcdesc}
{
isdone
}{}
Return
1
if the query is complete.
Return
\code
{
1
}
if the query is complete.
\end{funcdesc}
\end{funcdesc}
\setindexsubitem
{
(dnr result
object
attribute)
}
\setindexsubitem
{
(dnr result attribute)
}
\begin{datadesc}
{
rtnCode
}
\begin{datadesc}
{
rtnCode
}
The error code returned by the query.
The error code returned by the query.
...
@@ -96,17 +96,17 @@ zero. Valid only for address queries.
...
@@ -96,17 +96,17 @@ zero. Valid only for address queries.
\begin{datadesc}
{
cpuType
}
\begin{datadesc}
{
cpuType
}
\dataline
{
osType
}
\dataline
{
osType
}
Textual strings giving the machine type an OS name. Valid for
hinfo
Textual strings giving the machine type an OS name. Valid for
``hinfo''
queries.
queries.
\end{datadesc}
\end{datadesc}
\begin{datadesc}
{
exchange
}
\begin{datadesc}
{
exchange
}
The name of a mail-exchanger host. Valid for
mx
queries.
The name of a mail-exchanger host. Valid for
``mx''
queries.
\end{datadesc}
\end{datadesc}
\begin{datadesc}
{
preference
}
\begin{datadesc}
{
preference
}
The preference of this mx record. Not too useful, since the Macintosh
The preference of this mx record. Not too useful, since the Macintosh
will only return a single mx record.
Mx
queries only.
will only return a single mx record.
Valid for ``mx''
queries only.
\end{datadesc}
\end{datadesc}
The simplest way to use the module to convert names to dotted-decimal
The simplest way to use the module to convert names to dotted-decimal
...
...
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