On comp.os.linux.networking, in
<(E-Mail Removed)>, "Moe Trin" wrote:
> On Mon, 23 Oct 2006, in the Usenet newsgroup
> comp.os.linux.networking, in article
> <(E-Mail Removed) t>, Dan N
> wrote:
>
>>I want to send simple messages over a network using a
>>tcp-ip client-server model. Client makes tcp connection to
>>server, sends some data, and waits for an application level
>>acknowledgement from the server that the message has been
>>received. Is there some standard application level protocol to
>>do this?
>
> [compton ~]$ whatis telnet nc telnet (1) - user interface to
> the TELNET protocol nc (1) - TCP/IP swiss army knife [compton
> ~]$
>
> Netcat (nc) for the server, telnet for the client?
>
Netcat can be used for both server and client.
From the README (which is the manual):
Netcat can be used as a simple data transfer agent, and it
doesn't really matter which end is the listener and which end
is the client -- input at one side arrives at the other side as
output.
/quote
Connect to pre-arranged port on 'server' (where nc is listening)
and send 'some data' (a file) and have the 'server' send a file
(acknowledgement) back to the 'client' which would then send
whatever message (file) it had to the 'server'.
Fairly simple bash scripts. I don't know if you have ever tried
to script with telnet, but it is much simpler with nc and runs
much faster.
Alan
--
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconno...val/index.html
http://home.earthlink.net/~alanconno...nix/index.html