Linked Questions

0 votes
0 answers
35 views

this is my code s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("127.0.0.1", 8001)) message = json.dumps({ "wave-file": '/home/s41140/projects/...
sajjad alizade's user avatar
7 votes
1 answer
7k views

What I'm trying to do I'm trying to emulate the behavior of the following simple socat(1) command: socat tcp-listen:SOME_PORT,fork,reuseaddr exec:'SOME_PROGRAM' The above command creates a forking ...
Marco Bonelli's user avatar
0 votes
0 answers
6k views

I am trying to connect to the Discord API using raw sockets. To improve performance and concurrency, I've decided to use asyncio. However, it has been much less cooperative than the socket module by ...
hipeople321's user avatar
3 votes
1 answer
3k views

When I run the following code, it runs and print ("Listening, connect your APP to http://192.168.4.1:8080/") and waiting request as web server. During the web server mode, I want the LED to blink that'...
Sunrise17's user avatar
  • 389
2 votes
1 answer
3k views

I want to start an while loop that can only be cancelled when another socket command breaks that loop. I've tried using asyncio but the server doesn't accept incoming messages until the while loop ...
Lilliën's user avatar
1 vote
2 answers
1k views

Problem It's very common for beginners to solve IO waiting while concurrent processing in an similar way like here: #!/usr/bin/env python3 """Loop example.""" from time ...
Sukombu's user avatar
  • 167
1 vote
2 answers
2k views

I am running a main python program on a Windows PC that is hooked to equipment that cannot be ran on an Raspberry pi. At a certain point in the main program, I want to call/execute a Rpi program to ...
KLAW's user avatar
  • 13
0 votes
1 answer
899 views

I have a seemingly simple task that I can't quite wrap my brains around. Here is what I need to do. Using socket module, start a server, use a client to start a connection, stop the server, return ...
postoronnim's user avatar
0 votes
0 answers
309 views

I want to connect my two different devices using sockets library in Python. Both my devices are connected to the same Internet connection. I tried to use the sockets library to establish the ...
Ojes Jain's user avatar
0 votes
0 answers
102 views

I have a simple client server routine that uses threading which I am trying to convert to asyncio as an exercise for learning asyncio: # This threading code works as expected (see asyncio code below ...
Larry Freeman's user avatar