Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
19ba18f0
Commit
19ba18f0
authored
Aug 01, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor change in comments
so they don't get confused with #if preprocessor directive
parent
d4efef7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/ares.pyx
gevent/ares.pyx
+3
-3
No files found.
gevent/ares.pyx
View file @
19ba18f0
...
...
@@ -358,9 +358,9 @@ cdef public class channel [object PyGeventAresChannelObject, type PyGeventAresCh
def
gethostbyname
(
self
,
object
callback
,
char
*
name
,
int
family
=
AF_INET
):
if
not
self
.
channel
:
raise
get_socket_gaierror
()(
cares
.
ARES_EDESTRUCTION
,
'this ares channel has been destroyed'
)
#
if
family == AF_INET, send request for AF_INET
#
if
family == AF_UNSPEC, send request for AF_INET6 for AF_INET6 then for AF_INET if the former fails
#
if
family == AF_INET6, the bundled c-ares sends requests for AF_INET6 only whereas the stock c-ares
#
when
family == AF_INET, send request for AF_INET
#
when
family == AF_UNSPEC, send request for AF_INET6 for AF_INET6 then for AF_INET if the former fails
#
when
family == AF_INET6, the bundled c-ares sends requests for AF_INET6 only whereas the stock c-ares
# behaves the same as AS_UNSPEC
# note that for file lookups still AF_INET can be returned for AF_INET6 request
cdef
object
arg
=
(
self
,
callback
)
...
...
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