Python module which simplifies the task of writing network servers.
Questions tagged [socketserver]
385 questions
0
votes
1 answer
Can I use the Python SocketServer class for this implementation?
I've come to the realization where I need to change my design for a file synchronization program I am writing.
Currently, my program goes as follows:
1) client connects to server (and is verified)
2) if the client is verified, create a thread and…

Matt M
- 149
- 2
- 4
- 17
0
votes
2 answers
Runing class method multiple times parallel in Python
I have implemented a Python socket server. It sends image data from multiple cameras to a client. My request handler class looks like:
class RequestHandler(SocketServer.BaseRequestHandler):
def handle(self):
while True:
data…

karlitos
- 1,604
- 3
- 27
- 59
0
votes
1 answer
Bottle micro framework suddenly crash
i have web app that i have developed using bottle micro framework.
However it crash a lot and all of them suddenly without any action ( without using the web app) . So i have reviewed the logs file and find the following errors (i have no idea what…

Hamoudaq
- 1,490
- 4
- 23
- 42
0
votes
0 answers
socket server not sending data to php client
I am trying to create a communication between a socket server in java and a php client however apparently no data is sent from server to client. I have tried plenty of methods for writing data to socket but none of those did work although i am able…

user3253067
- 113
- 2
- 11
0
votes
1 answer
Why full text from text file is not printing in the server side?
I am using the below code to transfer one text file from client side to server side. I am writing something inside the text file and the stream is getting placed in front of the texts as I am using "r+". But in the server side the full text (newly…

user3751012
- 533
- 1
- 8
- 20
0
votes
1 answer
Multiple client not getting connected and cannot communicate at the same time
Below is the server code which I have written for multiple clients. But if I want to connect it with the second client, I am not able to connect it at the same time. At first I need to close the first client and then only I can connect and…

user3751012
- 533
- 1
- 8
- 20
0
votes
1 answer
Unable to connect with multiple client with my socket server program
My socket server program is mentioned below. It works fine with the single client but when I try to connect it with another client at the same time, I am unable to connect. But I have defined MAX_CLIENTS in my program as 2 but still why I am unable…

user3751012
- 533
- 1
- 8
- 20
0
votes
2 answers
Use of "Listen" in Socket Server in C++ Using Linux
In my socket server code, it is written that:
listen (socket_fd, 5);
I know this is written here for the reason of "listening connection" but I am not sure what the parameter 5 means. Also is there any syntax
socklen_t
I tried to find it using…

user3751012
- 533
- 1
- 8
- 20
0
votes
1 answer
Python SocketServer - How to reach main class data from threads
I'm looking for a way how to use SocketServer in python in order to work with a objects of the main class within the threaded server workers. I presume its linked to the proper inheritance of the SocketServer classes, but I cannot figure it…

user3746478
- 1
- 2
0
votes
1 answer
Python socket script. How to send data to specific client
I'm I created a server/client python script that uses socks. I'm trying to send data to a specific client. I would image I would have to load connected ip's into array but I don't know how to send data to specific client. I'v uploaded my code to…
user949958
0
votes
0 answers
Python socket server with a thread and service failed to accepts connections from client
I'm making a billing engine that will be connected to the Arduino, so that can communicate with each other using python socket and the Arduino with ethernet shield, but when I try to change the server is made in python into service, the socket…

dnaextrim
- 1
- 2
0
votes
0 answers
PHP sockets, Linux (Debian) Tuning, The Right Way
I try to create a PHP server that can handle 1 Million Concurrent Connections using socket or if there are any other methods, the main goal is to write it in PHP may be with some special modules like "libevent".
At the moment I tune my Debian 7…

kivlara
- 63
- 1
- 1
- 9
0
votes
1 answer
Why does this SocketServer work in Python but not IronPython?
I'm writing a small socket server to wrap around a .NET/C# API. I'm having trouble to get it to work when the SocketServer runs under IronPython. I'm using version 2.7.4.
When I run the server like this:
C:\Python27\python.exe data_server.py
From…

Captain Whippet
- 2,143
- 4
- 25
- 34
0
votes
1 answer
Sending files to remote server in the quickest manner
I have a separate server that processes the media uploaded to my main, web facing server. For now I upload files to it using FTP but the problem with this is that to ensure the files are done uploading I have a timeout running, which adds a delay in…

Michoel
- 834
- 5
- 16
0
votes
2 answers
Display HTML file using SocketServer in Python
I need to display an HTML file as a web page when a client makes a request using SocketServer or built in Python URL packages. My problem is that my displayIndex function currently displays the contents of the HTML file and not a rendered web page.…

Ulvi Ibrahimov
- 17
- 1
- 7