这是我的BPMN文件
import socket
# THIS WORKS FINE - PUBLIC -> PUBLIC
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('192.168.200.15', 7777))
s.sendto('test'.encode(),('192.168.200.16', 10000))
# THIS WORKS FINE - LOOPBACK -> LOOPBACK
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('127.0.0.1', 7777))
s.sendto('test'.encode(),('127.0.0.1', 10000))
# THIS WORKS FINE - PUBLIC -> LOOPBACK
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('192.168.200.15', 7777))
s.sendto('test'.encode(),('127.0.0.1', 10000))
# THIS THROWS ERROR - LOOPBACK -> PUBLIC
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('127.0.0.1', 7777))
s.sendto('test'.encode(),('192.168.200.16', 10000))
# RESULT:
# Traceback (most recent call last):
# File "x.py", line 21, in <module>
# s.sendto('test'.encode(),('192.168.200.16', 10000))
#OSError: [Errno 22] Invalid argument
在这种情况下,我遇到错误,尝试执行任务时任务无法完成。