Python module which simplifies the task of writing network servers.
Questions tagged [socketserver]
385 questions
-1
votes
2 answers
control incoming word in socketserver
hi this is my program in python
#!usr/bin/python
import SocketServer
class Echohandler(SocketServer.BaseRequestHandler):
def handle(self):
print "Got Connection form :",self.client_address
while True:
data =…

IR4N0nY
- 25
- 1
- 9
-1
votes
1 answer
Connecting Flash to Ports using socket programming
I need to send a signal output from flash application to an external hardware device. I know the concept, that a socket server is required in between to connect the both. Flash will communicate to the port using socket server and the external device…
-1
votes
2 answers
Java client/server performance difference between maintaining connections and re-establish connections requently
We have started to design a Java server/client program, there will be 1 server with potentially 100 clients, and the clients might be in another country connecting to server through VPN, so network bandwidth might not be ideal. Typical usage is,…

user2324836
- 3
- 1
-1
votes
1 answer
Event driven server in Java
I am trying to write an event driven HTTP web server. Because I will be using only one thread, the events have to queued up and handled asynchronously (I am also using Java NIO). However, I am stuck with the initial step only. I have opened a…

user1489580
- 45
- 2
- 5
-1
votes
1 answer
Photon Server 3 - Did not reach license monitor #0 error
I've downloaded the free license - (Photon 3 - Free License (100 CCU, no expiry)) and replaced the current trial license (30 days limited) with it, then I try to start my photon server, but it doesn't work. I check the log file and find this, 'Did…

photonians
- 699
- 1
- 4
- 12
-2
votes
1 answer
how does python socketserver pass a variable outside?
I'm using socketserver and pyqt5 to make a udpserver, like this:
class UdpServer(socketserver.BaseRequestHandler):
signal_msg=pyqtSignal(str)
def handle(self):
data =self.request[0]
signal_msg.emit(data.decode('utf-8'))
then…

Huilin Zhou
- 1
- 1
-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
1 answer
how to multithread on a python server
HELP please i have this code
import socket
from threading import *
import time
HOST = '' # Symbolic name meaning all available interfaces
PORT = 8888 # Arbitrary non-privileged port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print…

user3732790
- 5
- 1
- 3