Python Forum

Full Version: sending requests over TCP to terminal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to set up a TCP client to communicate with an encoder terminal (Heindenhain EIB714). The EIB is basically a server with 1 open port, which listens to commands sent by the client, does its thing and sends data back.
We'll assume that each output is exclusively the result of a client request (glorified echo server? LOL ).

I have already modified the client described in this tutorial (https://realpython.com/python-sockets/#a...and-server) to manage requests and data de/serialization with the EIB. To date the program works as standalone to send a single request but I feel I am missing some knowledge to properly integrate it in a bigger application.

Are there any existing libraries that can help setup a simple client to manage connections and I/O? I've heard of libraries such as zeromq but they seem over-complicated for my usage.
this might be of interest: https://realpython.com/python-sockets/
(Aug-30-2019, 10:13 AM)Larz60+ Wrote: [ -> ]this might be of interest: https://realpython.com/python-sockets/
Yes, it's the tutorial I was referring to ;)
I missed that
(Aug-30-2019, 11:13 AM)Larz60+ Wrote: [ -> ]I missed that
I updated the post to show the address