Questions tagged [socketserver]

Python module which simplifies the task of writing network servers.

385 questions
1
vote
0 answers

Can write but not read from Python socketserver with PHP

I'm trying to get a basic Python echo server running and to have a PHP script interface with it. The server receives data successfully and throws no exceptions when writing, but all attempts to read that data in the client time out. Here's the…
Larry
  • 11
  • 1
1
vote
1 answer

Teltonika FM1100 GPS Device sending same Data repeatedly after ack

I have a teltonika FM1100 device am developing web user interface for the device PHP device was sending data through connection using TCP am able to get data from the device like First device send IMEI number after that i send acknowledgment (01)…
Kannan
  • 31
  • 2
  • 7
1
vote
1 answer

Teltonika FM1100 GSM device Avl Data Ack

1) GPS FM1100 Module sends the following data IMEI 123456788927333 2) We send 01 as binary to the GPS module ( IMEI no.accepted, we tell the module to send the raw data) 3) The GPS send the below raw data Raw Data …
Kevin
  • 59
  • 2
  • 8
1
vote
1 answer

Unable to serve files in local directory using SocketServer & BaseHTTPServer

This is using python 2.7.6 I'm trying to serve files from my local, current working directory. I'm attempting to set up a server that runs from this directory, but have not been able to get any of its files to display. I've been attempting to run…
elti
  • 109
  • 3
  • 14
1
vote
0 answers

UDP file transfer with channel

Please help me; I don't know how to process the packet rate loss in Python from 0-10%. I need to write the sender.py and receiver.py to connect with the channel and modifiy the channel so it can send the picture. Here is the code for…
Mina Dolly
  • 11
  • 2
1
vote
1 answer

Python3 -- breaking out of a catch-all try block

I've just rewritten something akin to a basic python server ( https://docs.python.org/3/library/socketserver.html ) because I thought I needed to. My question is, did I? What I wanted to do is break out of the handler and out of the server loop if a…
Petr Skocik
  • 58,047
  • 6
  • 95
  • 142
1
vote
0 answers

Client Socket does not read from serversocket although if i connect it through browser it outputs to it

Serverpool class public class PooledWebServer implements Runnable{ int port; ServerSocket Serversocket; Thread runningThread = null; boolean isStoped = false; ExecutorService threadPool = Executors.newFixedThreadPool(10); …
DevilZ
  • 11
  • 1
1
vote
2 answers

Killing multiple httpservers running on different ports

I start multiple servers using the following: from threading import Thread from SocketServer import ThreadingMixIn from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class Handler(BaseHTTPRequestHandler): def do_GET(self): …
1
vote
1 answer

SocketServer calls socket.fileno infinitely

Deep diving into python's SocketServer module took me to Server.serve_forever() This calls the function _eintr_retry with select.select as func argument. However, inside _eintr_retry, the system call socket.fileno is called instead of select system…
user2879704
1
vote
3 answers

C - reading integers from client to server using read()

I want to send a number from a client to a server. My code is : Server n= read( client_sockfd, &choice_client, 1 ); //read client's choice printf("%d\n", choice_client); Client my_choice=1; …
Arein
  • 11
  • 1
  • 2
1
vote
1 answer

Java socket server gives java.net.SocketException: No buffer space available (maximum connections reached?): connect exception

I have created client server application in the client side when i send multiple requests to the server some time later it gives below error.When i monitor TCPview there are lot of port connections on CLOSE_WAIT status.Has any one come across with…
Seth De
  • 417
  • 6
  • 18
1
vote
2 answers

Why cant both my client communicate to each other? (java server socket)

i'm having trouble to connect TWO clients. is it bcoz i am using DataOutputStream and DataInputStream instead of BufferedReader and PrintWritter? For some reason, it just dont connect to each other even if i set the server sockets and sockets to be…
de ng
  • 13
  • 5
1
vote
1 answer

sending message to a client using SocketServer in python

I'm building a TCP server using the SocketServer module in python. As it seems to me, SocketServer.TCPServer functionality is destined to reply to a client that sent a request to the server but not for random communication between the server and the…
user3848844
  • 509
  • 6
  • 20
1
vote
1 answer

socket server framework like Tcl "socket -server"

I'm looking to reimplement some Tcl code that uses the socket -server construct [1]. What's the best option in Python for a small, industrial strength multi-user network-based server that includes event loop processing/integration? [1]…
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
1
vote
1 answer

Unable to print message from server side to client side before sending any message from client

I have two programs for server and client. My server can connect to multiple client. But the problem right now I am facing is that, I want to display some message from the server side to client side but I am unable to do that. Both the server and…
user3751012
  • 533
  • 1
  • 8
  • 20