[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What is the advantage of using /dev/tcp/host/port
From: |
Peng Yu |
Subject: |
What is the advantage of using /dev/tcp/host/port |
Date: |
Tue, 30 Mar 2021 17:09:25 -0500 |
Hi,
https://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip
I see /dev/tcp/host/port is a generic socket so that HTTP requests can
be sent to it. What is the advantage of using it instead of wget/curl?
Is it allow a connect to get established once but sent and receive
messages multiple times, whereas wget/curl has to establish a new
connection each time some messages need to be sent and received?
Thanks.
--
Regards,
Peng
- What is the advantage of using /dev/tcp/host/port,
Peng Yu <=