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
Tag: sockets
Error reading file — ‘utf’ can’t decode byte 0xff in position 45: invalid start byte
I’ve got these two scripts right here, send.py and receive.py. Send.py is a host, it opens a connection and waits for receive.py to connect. Once the connection is successfull, in theory, I could send any file from one device (with the send.py script) to another (with the receive.py script). Little problem… I was trying to read from a random music
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
peer to peer connection to a computer in external network using python socket library
I am trying to create a peer-to-peer python app using the socket library. I am curious to know if there is any way in which I can use the socket library to connect to another computer outside my local network without any manual steps like opening ports on the router for port forwarding. Do I need to use an already
improve the throughput of sending multiple file via socket
At First, I don’t have any errors or bugs, I ask this question to understand more. I want to send multiple files concurrently via a separate connection to a server from a client. I used threads to make the sending process concurrent on the client-side. It sounds that it does improve the throughput a little bit. But I’m still confused.
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,
I can’t find the error in my socket python program
I was following a socket tutorial and suddenly there was a bug in my code that I couldn’t understand or find Can anyone help me find the bug? I referenced with the tutorial code and it doesn’t work. The only way is to copy/paste and I don’t like it this is my server.py file And this is my client.py file
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