Python Forum
sending requests over TCP to terminal
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sending requests over TCP to terminal
#1
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.
Reply
#2
this might be of interest: https://realpython.com/python-sockets/
Reply
#3
(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 ;)
Reply
#4
I missed that
Reply
#5
(Aug-30-2019, 11:13 AM)Larz60+ Wrote: I missed that
I updated the post to show the address
Reply
#6
zerorpc?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Configuring requests module to use secondary IP on server for outbound requests mohit 1 6,567 Oct-24-2016, 05:21 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020