Replies: 1 comment 14 replies
-
I think I found a way udp_socket = await anyio.create_udp_socket(family=socket.AF_INET)
raw_socket = typing.cast(socket.socket, udp_socket.extra_attributes[SocketAttribute.raw_socket]()) and then set the options with |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to create an udp socket wich joins a multicast group to receive udp packets from a multicast group.
Basically, I am trying to replace the following code with
anyio
but when I create the udp socket with
await anyio.create_udp_socket(family=socket.AF_INET, local_host=self.addr, local_port=self.port)
then I receive a(socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions)
when I call this function with
'127.0.0.1'
and port3702
How can I set additional socket options before the socket is bound to?
Beta Was this translation helpful? Give feedback.
All reactions