4
votes
0answers
125 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! ...
3
votes
1answer
490 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 ...
2
votes
3answers
209 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 ...
2
votes
1answer
43 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 ...
1
vote
1answer
714 views

Multi-threaded socket client for Scrolls

https://github.com/david-torres/ScrollsSocketClient ...
0
votes
2answers
102 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 ...