simplest form of one-way interprocess communication
created by pipe()
system call (see man 2 pipe
)
usually called by a process before it forks in order to setup a communication channel between child processes
example:
echo | ~jae/cs3157-pub/lab4/mdb-lookup-cs3157 | grep '{}'
Sockets are similar to pipes, but:
128.59.0.5
tokyo.clic.cs.columbia.edu
, into an IP
addresssee man nc
connects stdin
/stdout
with a socket
server mode: nc -l <port>
client mode: nc <hostname or IP addr> <port>
can we turn our mdb-lookup-cs3157
into a network server using nc
and some
pipes?
man mkfifo
)