我正在尝试获取未知SMB服务器的所有共享设备。当尝试通过SMBConnection.connect()函数连接时,它拒绝连接到服务器,连接丢失或根本没有连接。同时,我在Python中遇到异常,我可以从我的桌面环境连接到该服务器。是什么导致了这一切。我有一个从Linux主机到Windows主机的不同的SMB服务器列表。
from smb.SMBConnection import SMBConnection
import socket
ips ['x.x.x.x','x.x.x.x'...]
for ip in ips :
print(ip)
tr
我正在使用构建一个小型客户端,在用阅读他们的代码时,我偶然发现了一个奇怪的地址范围概念。它在235行的绑定过程中使用。
它显然不同于smpp服务器地址,它的值示例来自第32行的,如下所示。我对它的用法完全感到困惑,因为其他的东西似乎都是正确的。
# The address range this smpp client will serve
addr-ton=1
addr-npi=1
address-range=11*
有人能给点线索吗?
谢谢
我正在尝试使用apt-get安装软件包:
root@ubuntu:/# sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4-gnutls-dev is not available, but is referred to by another pac