/usr/lib/python2.7/dist-packages/stomp/backwardsock26.py is in python-stomp 4.1.19-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | """
Python2.6 (and greater) specific versions of various networking (ipv6) functions used by stomp.py
"""
import socket
def get_socket(host, port, timeout=None):
"""
Return a socket connection.
:param str host: the hostname to connect to
:param int port: the port number to connect to
:param timeout: if specified, set the socket timeout
"""
return socket.create_connection((host, port), timeout)
|