View | Details | Raw Unified | Return to bug 16349
Collapse All | Expand All

(-)src/common/xmpp/transports.py (+4 lines)
Lines 35-40 Link Here
35
import os
35
import os
36
import errno
36
import errno
37
37
38
import ctypes
39
libc = ctypes.CDLL("libc.so.6")
40
38
DATA_RECEIVED='DATA RECEIVED'
41
DATA_RECEIVED='DATA RECEIVED'
39
DATA_SENT='DATA SENT'
42
DATA_SENT='DATA SENT'
40
43
Lines 97-102 Link Here
97
        try:
100
        try:
98
            if not server:
101
            if not server:
99
                server=self._server
102
                server=self._server
103
            libc.res_init()
100
            for ai in socket.getaddrinfo(server[0],server[1],socket.AF_UNSPEC,socket.SOCK_STREAM):
104
            for ai in socket.getaddrinfo(server[0],server[1],socket.AF_UNSPEC,socket.SOCK_STREAM):
101
                try:
105
                try:
102
                    self._sock=socket.socket(*ai[:3])
106
                    self._sock=socket.socket(*ai[:3])

Return to bug 16349