Assignment#3
Assignment#3
content
------reply data
end-of-reply, 00000011(b) (ETX)
Note that the requests allow for both name and number matching, so you need
to also be able to match a name. Also note that the character string can contain
any type of byte oriented data, including binary representations of numbers.
For example,
short val;
char *message;
message = &val;
send (sock, message, 2, 0);
2. (Simple File Transfer) Write a client server application in which client request
a file to server and server send requested file to client. Design a suitable
protocol for message exchange as above, so that client and server can
communicate efficiently and server can ask different option to the client.
3. Write a client-server program that provides chat facility. Your application
allows a user on one machine to type in and send text to a user on another
machine. Your application should provide non blocking chat facility to the
users. This means, user can send its message at any time without waiting for
replay from the other side. (Hint: Use select() system call)