-
Hi all, I was wondering how to set SO_SNFBUF and SO_SNDRCV option for an udp socket ? Thanks in advance for anybody that can help me with this |
Beta Was this translation helpful? Give feedback.
Answered by
agronholm
Jun 28, 2022
Replies: 1 comment 1 reply
-
You can get the raw socket and then use import socket
from anyio import SocketAttribute
raw_socket = udpsocket.extra(SocketAttribute.raw_socket)
raw_socket.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 65536) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Lulu300
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get the raw socket and then use
setsockopt()
on it: