11-08-2010
Basically. the client and server exchange a stream of bytes. That is both send a bunch of bytes, and receive a bunch of bytes. Client and server needs to agree how to decode and interpret this bunch of bytes; this is what we call protocol between the client and the server.
For instance, when you're browsing this very site, a protocol based on TCP called HTTP is used between your web browser and the (apache) server.
So now the question is: how will the client understand the reply "busy update", "select beer", "select quantity" ? How will the client send to the server "light", "black" or "liter","bottle" ? What convention are you using? strings ? something else?
May I recommend this book
UNIX Network Programming
Cheers,
Loïc
10 More Discussions You Might Find Interesting
1. Programming
How can 'popen()' be used for reading and writing to opening pipe?
If i try 'popen("prog", "rw")'
and then put and get chars - it does
not work.
What is wrong? (1 Reply)
Discussion started by: szzz
1 Replies
2. Shell Programming and Scripting
I have tried to show the file name whose size is greater than 200 byte in current directory.
Please help me.
ls -l | tr -s " " " " | cut -f 5,9 -d " " >out.txt
#set -a x `cat out.txt`
i=0
`cat out.txt` | while
do
read x
echo $x
#re=200
j=0
if }" < "200" ]
then
echo $j
j=`expr $j... (2 Replies)
Discussion started by: rinku
2 Replies
3. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
4. Programming
Hi all,
I have a problem with some read/write functions.
I have a .bin file which contains a lot of structures as follows:
struct alumno
{
char id;
char apellido1;
char apellido2;
char nombre;
float nota1p;
float nota2p;
float notamedia;
char photofilename;
};
What I have... (3 Replies)
Discussion started by: Attenea
3 Replies
5. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
6. IP Networking
hi
am newbie to unix and socket programing
I am trying to figuring out syntax for read and write
to send data from server to client and client can read it
I have to send two integers
write(newsockfd,buffer,"%d %d",x,y,0) writing from client where x and y are two integers..
... (7 Replies)
Discussion started by: karthik1238
7 Replies
7. Shell Programming and Scripting
Hello all,
I have a requirement to read and write to a tcp socket from an HP-UX shell script. I see a /dev/tcp character device on my servers:
crw-rw-rw- 1 root root 72 0x00004f Mar 28 18:37 /dev/tcp
So I believe this is what I should use. The problem is that all the... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies
8. Shell Programming and Scripting
I have got a file in following format:
AAAAAAA
BBBBBBBB
CCCCCCC
DDDDDDD
I am trying to read this file and out put it in following format:
AAAAAAA,BBBBBBB,CCCCCCC,DDDDDD
Preferred method is shell or Perl.
Any help appreciated. (11 Replies)
Discussion started by: Araoki
11 Replies
9. Shell Programming and Scripting
Hello Guys, How all are doing?
I have an issue in Unix and want help from all of you
I have a file in UNIX which it read by line by line , If at the end of line '0' is written the it should fetch that line into another file and change '0' to '1'
and If at the end of line '1' is written then it... (10 Replies)
Discussion started by: adisky123
10 Replies
10. Programming
Can someone help me to write this program in C in QNX?
Using the FIFO queues write a simple communication system consisting of programs write and read. The program write the parameters given strings enclosed in single quotes. These strings are written to the FIFO file. Reads the program read... (1 Reply)
Discussion started by: ebasse2
1 Replies
LEARN ABOUT CENTOS
tapset::nfs_proc
tapset::nfs_proc(3stap) tapset::nfs_proc(3stap)
NAME
tapset::nfs_proc - systemtap nfs_proc tapset
DESCRIPTION
nfs.proc.lookup
NFS client opens/searches a file on server
See probe::nfs.proc.lookup(3stap)
for details.
nfs.proc.read
NFS client synchronously reads file from server
See probe::nfs.proc.read(3stap)
for details.
nfs.proc.write
NFS client synchronously writes file to server
See probe::nfs.proc.write(3stap)
for details.
nfs.proc.commit
NFS client committing data on server
See probe::nfs.proc.commit(3stap)
for details.
nfs.proc.read_setup
NFS client setting up a read RPC task
See probe::nfs.proc.read_setup(3stap)
for details.
nfs.proc.read_done
NFS client response to a read RPC task
See probe::nfs.proc.read_done(3stap)
for details.
nfs.proc.write_setup
NFS client setting up a write RPC task
See probe::nfs.proc.write_setup(3stap)
for details.
nfs.proc.write_done
NFS client response to a write RPC task
See probe::nfs.proc.write_done(3stap)
for details.
nfs.proc.commit_setup
NFS client setting up a commit RPC task
See probe::nfs.proc.commit_setup(3stap)
for details.
nfs.proc.commit_done
NFS client response to a commit RPC task
See probe::nfs.proc.commit_done(3stap)
for details.
nfs.proc.open
NFS client allocates file read/write context information
See probe::nfs.proc.open(3stap)
for details.
nfs.proc.release
NFS client releases file read/write context information
See probe::nfs.proc.release(3stap)
for details.
nfs.proc.handle_exception
NFS client handling an NFSv4 exception
See probe::nfs.proc.handle_exception(3stap)
for details.
nfs.proc.create
NFS client creating file on server
See probe::nfs.proc.create(3stap)
for details.
nfs.proc.remove
NFS client removes a file on server
See probe::nfs.proc.remove(3stap)
for details.
nfs.proc.rename
NFS client renames a file on server
See probe::nfs.proc.rename(3stap)
for details.
SEE ALSO
probe::nfs.proc.lookup(3stap), probe::nfs.proc.read(3stap), probe::nfs.proc.write(3stap), probe::nfs.proc.commit(3stap),
probe::nfs.proc.read_setup(3stap), probe::nfs.proc.read_done(3stap), probe::nfs.proc.write_setup(3stap),
probe::nfs.proc.write_done(3stap), probe::nfs.proc.commit_setup(3stap), probe::nfs.proc.commit_done(3stap), probe::nfs.proc.open(3stap),
probe::nfs.proc.release(3stap), probe::nfs.proc.handle_exception(3stap), probe::nfs.proc.create(3stap), probe::nfs.proc.remove(3stap),
probe::nfs.proc.rename(3stap), stap(1), stapprobes(3stap)
IBM
--- tapset::nfs_proc(3stap)