Skip to content
Advertisement

Tag: sockets

How to use the options to socket() for IPv6 multicast UDP?

I have a linux network interface that IPv6 multicast traffic is arriving on. There are both ICMPv6 packets and UDP packets arriving for the same multicast group. I’m trying to receive the UDP traffic. The code below is in Python but I don’t believe this is important; the Python library here is a pretty thin wrapper around the BSD sockets

How to send and receive data the same time Python UDP socket

I just learned about #python recently, I have done a small project about rasberry pi. I want to transmit and receive data between Server is Laptop, client is Ras via UDP protocol, I use Python’s socket library. Transmit sensor data from ras to laptop, and transmit control commands from laptop to ras. Data from ras must always be transmitted, so

I can’t get a response from the server via socket python

I’m trying to send a string to the server, but I can’t send the data and get a response, what’s the problem, please help. When I connect to the server via netcat, everything is fine. Answer I was finally able to get a response from the server, it was because NetCat automatically adds n when sending text and the command

How can I get a socket’s .recv() not to block?

I’m trying to write a simple daemon that listens for orders on a Unix socket. The following works, but the connection.recv(1024) line blocks, meaning I can’t kill the server gracefully: Ideally, I’d like to place all of this inside a Thread that checks a self.should_stop property every self.LOOP_TIME seconds, and if that value is set to True, then exit. However,

Unable to transfer file using Sockets on different computers

I recently wrote a code for a file transfer in Python. Sockets connect fine when I connect them from different terminals on the same system. But the same doesn’t seem to work when I connect them from different computers which are connected over the same Wifi network. Here’s the server code: Here’s my client code: When I try to connect

Push live updates through Socket

I need to pass live data from a python script to my server (made with FastApi) and from this server I need to pass all of them to a client (made with Angular). Currently I’m doing Http PUT requests from my script and then I’m using Websocket to pass the updates to the client. The problem is that whenever my

Advertisement