我遇到了这行代码无法在没有sudo的情况下运行的问题。
try:
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_UDP)
except socket.error, msg:
print 'Socket could not be created. Error Code: ' + str(msg[0]) + ' Message ' + msg[1]
sys.exit()
我明白了:
Socket could not be created. Error Code : 1 Message Operation not permitted.
有人有解决方案吗?提前致谢