Socket Send Buffer
panda last edited by
I have a simple UDP listener that will echo back received data padded with additional data:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.settimeout(600) s.bind(('', 9000)) while True: data, addr = s.recvfrom(512) data += "more data" s.sendto(data, addr)
It appears there is a 1024 byte limit that the "sendto()" function can send. What is the strategy to send more data as a response? Is this possible? I can't chunk the data by calling "sendto()" more than once successfully.