Skip to main content

All Questions

Tagged with
1 vote
2 answers
735 views

socat TCP server bidirectional using sleep, non-interactive client returns without response. Server reports: I/O error

I have the following TCP server: socat TCP-LISTEN:10000,fork,reuseaddr SYSTEM:'read -r msg && sleep 3 && echo "OK"' When I execute (interactive mode): socat - TCP:localhost:...
lepe's user avatar
  • 748
1 vote
2 answers
9k views

TCP to virtual serial port with socat

I have a program (program 1) that has a TCP server listening on port 1234. I have confirmed that the server accepts connections and sends data with a utility str2str. Program 2, on the same machine, ...
sebinho's user avatar
  • 73
0 votes
1 answer
4k views

Increase buffer size for a specific socket on Linux

I am using CentOS7 and I have to increase the send buffer size (SO_SNDBUF) on a socket listening on a specific port. The application that has the port opened does not natively support this. Few things ...
Derrick Crash's user avatar
2 votes
0 answers
3k views

connect to a serial device via TCP socket

My setup is this: serial device ttyUSB0 connected to laptop A software that opens TCP socket to listen and write to, also runs on laptop A (linux) My goal is to pipe data from/to serial device ...
oddy's user avatar
  • 121