Questions tagged [tcpsocket]
246 questions
-1
votes
1 answer
Python TCP Server Stops Responding After A While
So I wrote this python code on my RPI to create a digital poster that talks with my crestron control processor. For some reason my code stops responding after a while. I dont know why. I dont know if my Pi is going to sleep but if anyone could point…

ryanjblajda
- 1
- 1
-1
votes
4 answers
Using timeouts on socket send() and recv()
Is it a good idea to ALWAYS use either select() or poll() and impose say a 10 second timeout on both send() and recv() calls? Or should I just allow them to block indefinitely?
Does imposing this sort of timeout (using select() or poll()) lead me to…

Curious
- 20,870
- 8
- 61
- 146
-2
votes
1 answer
How do I connect two computers using the same router?
I’m using the python socket module on a Mac.
How do I connect two computers using the same router? I need a TCP socket with fast data passing between.
When I tried just hooking two computers up by their private ip address, then I got a Connection…

JWS
- 11
- 6
-2
votes
2 answers
SqlCommand timeout in C# MMO application
I have a C# project that is working with TCP socket in an asynchronous way.
Every request comes from client and ask question from SQL Server stored procedure, opens and closes a SQL connection after ending of question.
I've used this code:
using…

Reza Akraminejad
- 1,412
- 3
- 24
- 38
-2
votes
1 answer
Python TCP Socket server store messages from clients
I want to store all the messages from clients in a list on my 'TCP server'.
import SocketServer
class MainServerHandler(SocketServer.BaseRequestHandler):
requests = []
def handle(self):
message = self.request.recv(4)
…

kartik
- 55
- 4
-2
votes
2 answers
My linux application port is taken by another service when it's stopped
I developed an application which contains a small http server.
my application is launched in the boot. If I kill it (with kill -9 for example), the http server port will be taken directly by another daemon(acsd from broadcom).
I tried the same…

Anis_Stack
- 3,306
- 4
- 30
- 53