Python module which simplifies the task of writing network servers.
Questions tagged [socketserver]
385 questions
0
votes
0 answers
How to convert Message to CharSequence to show the message from socket in notification?
I have Client-Server Socket that listen-push messages.
Is there a way to get content from Message msg obj and put to setNotificationMessage() to show the message from server like notification message
I get this error
incompatible types: Message…

Valentin Gjorgoski
- 305
- 1
- 12
0
votes
0 answers
GPS Tracking: SOCKET PROGRAMMING :
I am new to socket programming and the solution at GPS Socket communication (CONCOX) helped me to most of the extent.
I have to track and capture all the data from all these 2500 vehicles. The listener I used from above sends data to database in…

jakes R
- 1
- 1
0
votes
0 answers
Create my own Python3 Proxy using socketserver and http.server in EC2 machine
I am trying to follow this example and translating it to python3 in order to create a proxy server to be able to access some http webpages through it.
I'm running my script in an AWS EC2 where I have opened port 80.
I run the code below, go to…

edumugi
- 31
- 6
0
votes
0 answers
Handling requests in python SocketServer
I have a code below that does the client-server communication properly.
The client:
# Client
import socket
import pickle
class Model:
def __init__(self, host, port):
self.port = port
self.host = host
def snd_query(self,…

slawomirs
- 23
- 5
0
votes
1 answer
How to read incomming messages using svSocket Server in R
I am using svSocket package in R to create a socket server. I have successfully created server using startSocketServer(...). I am able to connect my application to the server and send data from server to the application. But I am struggeling with…

joe
- 87
- 8
0
votes
1 answer
Python SimpleHttpServer, how to return files without extensions with plain/text mime type?
I coded following simple http server in python, I have some files without an extension and want to serve them with "text/plain" mime type. How can I achieve it?
import SimpleHTTPServer
import SocketServer
PORT = 80
class…

Sameera Kumarasingha
- 2,908
- 3
- 25
- 41
0
votes
1 answer
I am trying to create an http2 multiclient server using python hyper library. It completes only the first request
I am able to serve http2 using this tutorial. https://python-hyper.org/projects/h2/en/stable/basic-usage.html. This version works fine. But this server is able to serve only one client in a time, becouse of the blocking sockets.
Then I looked for…

user3598726
- 951
- 2
- 11
- 27
0
votes
1 answer
JAVA Sockets getting called too many times
I am trying to implement an ServerSocket but i simply can not understand why code gets called 3 times if I close the connection. Here is my code:
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import static…

Angelo
- 195
- 1
- 15
0
votes
1 answer
s.recv hang in python sockets
I have a client and server machine.
From client I am sending a linux command which replies after 80 sec.
As the server does not reply initial80 seconds the (s.recv) and a timeout error occurs.
Please help how to proceed here?
s=…

Atila
- 81
- 4
- 9
0
votes
2 answers
Client can only connect to server when on the same computer
I am trying to create a multiplayer java game and have decided to use a java socket server. The "client" is able to connect and communicate to the server flawlessly when they are both ran on my computer, but when I send the client file to another…
user9489163
0
votes
0 answers
Java REST API to send and receive multiple String via socket server and get back the response from server
I am writhing a java socket API that is able to send sting to my socket server and get back the response from server.
Below is my server code :
package com.test.socket;
import java.io.*;
import java.net.*;
import java.util.Calendar;
public…

Saurodeep Sett
- 13
- 4
0
votes
1 answer
ValueError from socketserver on close event using PySide2
I found this answer the other day when trying to figure out a way to send data to an already running instance of PyQt and it works well but I was just messing around with PySide2 and tried the code and it gives an error when closing. It works…

Richard
- 445
- 1
- 5
- 21
0
votes
1 answer
read a response from socket server and save into database
I am new to socket programming. I have a GPS Tracker that connects and send data to a defined public server:port through GPRS connection.
I am getting the result on the terminal.
I want to know how can I get that response in some variable so I can…

user1hjgjhgjhggjhg
- 1,237
- 4
- 15
- 34
0
votes
1 answer
Registering socket connection with Node.js tcp server
Say I have a Node.js tcp server:
const map = new Map();
const s = net.createServer(function(socket){
socket.pipe(jsonParser()).on('data', function(v){
v && v.pid && map.set(v.pid, socket);
}):
});
I connect to it using Bash like…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
1 answer
OSError: [Errno 22] Invalid argument?
I promise I will give you 100 reputation if you can solve this in 20 minutes... I'm in very emergent situation.
I'm running this command: python3 ringo.py F 6003 networklab1.cc.gatech.edu 6002 2
poc_address = (poc_name, int(poc_port))
peer_data =…

merry-go-round
- 4,533
- 10
- 54
- 102