Tagged Questions
2
votes
2answers
65 views
Mutual friends finder written in Python
I've written a server/client tool which can "check the Six degrees of separation theory" in Russian social network VK.com. Client sends task (which contains two VK IDs) and Server tries to find all ...
2
votes
3answers
271 views
Adding a timeout to an UDP socket server
I use a thread to read from a UDP socket. Afterwards the string gets parsed.
In another thread I send to every connected client via this socket. I would like to keep latency and resources for running ...
0
votes
2answers
135 views
Python UDP-server and JSON parser script
I am a python beginner. I wrote a script which should run on a raspberry PI as an UDP server. It is reading and writing to a serial device and has to process and forward JSON strings too.
Because ...
2
votes
1answer
62 views
Proxy using socket, doubts on multithreading and connection closing
I'm trying to make a simple proxy server in Python using the socket library, mostly to understand how it works. I'm a noob both at programming and networking, so please be nice if my questions are ...
3
votes
1answer
566 views
Run a TCP server listening for incoming messages
I've written the following code, but I need some review on design style. I want to develop a library/module and expose an API to client programs. How do I do that?
The code just runs a TCP server ...
4
votes
0answers
148 views
A polling wrapper for Python's socket library
Even though I am working with one socket, I have wrapped it with an object which allows .recv() method which accepts timeout, using Python's ...
3
votes
2answers
1k views
Python Port Scanner
This is only my third Python script. Be brutal with me. Any tips, tricks, best practices, or better usages would be great!
...
1
vote
1answer
747 views