Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
a37b9460
Commit
a37b9460
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
[sgala] IPV6 support for connection fith server. see #1969
parent
e8145b8b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+5
-4
5 additions, 4 deletions
ChangeLog
src/common/xmpp/transports.py
+11
-7
11 additions, 7 deletions
src/common/xmpp/transports.py
src/common/xmpp/transports_nb.py
+11
-2
11 additions, 2 deletions
src/common/xmpp/transports_nb.py
with
27 additions
and
13 deletions
ChangeLog
+
5
−
4
View file @
a37b9460
Gajim 0.11 (XX
Octo
ber 2006)
Gajim 0.11 (XX
Decem
ber 2006)
* New build system, using GNU autotools. See README.html
* New build system, using GNU autotools. See README.html
* Support for link-local messaging via Zeroconf using Avahi (XEP-0174)
* Support for link-local messaging via Zeroconf using Avahi (XEP-0174)
* Automatically connect and disconnect to accounts according to network availability (if Network Manager is present)
* Automatically connect and disconnect to accounts according to network availability (if Network Manager is present)
* GNOME Keyring Support (if GNOME keyring is available, manage passwords and save them in an encrypted file).
* IPV6 support to connect to server
* GNOME Keyring Support (if GNOME keyring is available, manage passwords and save them in an encrypted file)
* Introducing View Menu (GNOME HIG)
* Introducing View Menu (GNOME HIG)
* Ability to now hide the Transports group
* Ability to now hide the Transports group
* Support for notify-python. So if notification-daemon is not available, we still can show cool popups
* Support for notify-python. So if notification-daemon is not available, we still can show cool popups
...
@@ -33,8 +34,8 @@ Gajim 0.11 (XX October 2006)
...
@@ -33,8 +34,8 @@ Gajim 0.11 (XX October 2006)
* Fixed bugs when removing or renaming an account with tabs open (#2369 and #2370)
* Fixed bugs when removing or renaming an account with tabs open (#2369 and #2370)
* New translations: Croatian, Esperanto
* New translations: Croatian, Esperanto
*
FIXME : Ad-Hoc for 0.11 ?
*
Ad-Hoc commands
*
FIXME : does that work ? not tested :
Metacontacts across accounts (#1596)
* Metacontacts across accounts (#1596)
* Gajim now requires Python 2.4 to run
* Gajim now requires Python 2.4 to run
Gajim 0.10.1 (06 June 2006)
Gajim 0.10.1 (06 June 2006)
...
...
This diff is collapsed.
Click to expand it.
src/common/xmpp/transports.py
+
11
−
7
View file @
a37b9460
...
@@ -95,13 +95,17 @@ class TCPsocket(PlugIn):
...
@@ -95,13 +95,17 @@ class TCPsocket(PlugIn):
def
connect
(
self
,
server
=
None
):
def
connect
(
self
,
server
=
None
):
"""
Try to connect. Returns non-empty string on success.
"""
"""
Try to connect. Returns non-empty string on success.
"""
try
:
try
:
if
not
server
:
server
=
self
.
_server
if
not
server
:
self
.
_sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
server
=
self
.
_server
self
.
_sock
.
connect
(
server
)
for
ai
in
socket
.
getaddrinfo
(
server
[
0
],
server
[
1
],
socket
.
AF_UNSPEC
,
socket
.
SOCK_STREAM
):
self
.
_send
=
self
.
_sock
.
sendall
try
:
self
.
_recv
=
self
.
_sock
.
recv
self
.
_sock
=
socket
.
socket
(
*
ai
[:
3
])
self
.
DEBUG
(
"
Successfully connected to remote host %s
"
%
`server`
,
'
start
'
)
self
.
_sock
.
connect
(
ai
[
4
])
return
'
ok
'
self
.
_send
=
self
.
_sock
.
sendall
self
.
_recv
=
self
.
_sock
.
recv
self
.
DEBUG
(
"
Successfully connected to remote host %s
"
%
`server`
,
'
start
'
)
return
'
ok
'
except
:
continue
except
:
pass
except
:
pass
def
plugout
(
self
):
def
plugout
(
self
):
...
...
This diff is collapsed.
Click to expand it.
src/common/xmpp/transports_nb.py
+
11
−
2
View file @
a37b9460
...
@@ -106,8 +106,17 @@ class NonBlockingTcp(PlugIn, IdleObject):
...
@@ -106,8 +106,17 @@ class NonBlockingTcp(PlugIn, IdleObject):
self
.
_server
=
server
self
.
_server
=
server
self
.
state
=
0
self
.
state
=
0
try
:
try
:
self
.
_sock
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
for
ai
in
socket
.
getaddrinfo
(
server
[
0
],
server
[
1
],
socket
.
AF_UNSPEC
,
socket
.
SOCK_STREAM
):
self
.
_sock
.
setblocking
(
False
)
try
:
self
.
_sock
=
socket
.
socket
(
*
ai
[:
3
])
self
.
_sock
.
setblocking
(
False
)
self
.
_server
=
ai
[
4
]
break
except
:
if
sys
.
exc_value
[
0
]
==
errno
.
EINPROGRESS
:
break
#for all errors, we try other addresses
continue
except
:
except
:
sys
.
exc_clear
()
sys
.
exc_clear
()
if
self
.
on_connect_failure
:
if
self
.
on_connect_failure
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment