def TCP_CloseSocket (self, socketId):
        if (socketId >= 0 and socketId < self.MAX_NB_SOCKETS):
            try:
                XPS.__sockets[socketId].close()
                XPS.__usedSockets[socketId] = 0
                XPS.__nbSockets -= 1
            except socket.error:
                pass

    # GetLibraryVersion
dataset/ETHPy150Open xraypy/xraylarch/plugins/epics/XPS_C8_drivers.py/XPS.TCP_CloseSocket/original