/usr/lib/python2.7/dist-packages/pyvisa/resources/tcpip.py is in python-pyvisa 1.8-2.
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 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # -*- coding: utf-8 -*-
"""
pyvisa.resources.tcpip
~~~~~~~~~~~~~~~~~~~~~~
High level wrapper for TCPIP resources.
This file is part of PyVISA.
:copyright: 2014 by PyVISA Authors, see AUTHORS for more details.
:license: MIT, see LICENSE for more details.
"""
from __future__ import division, unicode_literals, print_function, absolute_import
from .. import constants
from .resource import Resource
from .messagebased import MessageBasedResource, ControlRenMixin
@Resource.register(constants.InterfaceType.tcpip, 'INSTR')
class TCPIPInstrument(ControlRenMixin, MessageBasedResource):
"""Communicates with to devices of type TCPIP::host address[::INSTR]
More complex resource names can be specified with the following grammar:
TCPIP[board]::host address[::LAN device name][::INSTR]
Do not instantiate directly, use :meth:`pyvisa.highlevel.ResourceManager.open_resource`.
"""
@Resource.register(constants.InterfaceType.tcpip, 'SOCKET')
class TCPIPSocket(MessageBasedResource):
"""Communicates with to devices of type TCPIP::host address::port::SOCKET
More complex resource names can be specified with the following grammar:
TCPIP[board]::host address::port::SOCKET
Do not instantiate directly, use :meth:`pyvisa.highlevel.ResourceManager.open_resource`.
"""
|