To submit, tar your files, then type submit_cse489 file.tar
|
|
Programming Project Phase 2 (Out on Mon Oct 20, Due
on Mon Dec 01. Absolute deadline!) |
|
Programming Project Phase 1 (Out on Mon Sep
15, Due on Mon Oct 13. Absolute deadline!) |
- Project phase 1 specification
- We provide you with 4 examples, following the line of presentation
in R. Stevens' Unix network programming book. All these link to tar
files. To untar, type "tar -xvf filename.tar". Then, cd into
the untared directory and type "make" to compile the programs.
Read the README files in each directory, and also the comments inside
the source codes to see what's going on. Especially, the first example
has hard-coded IP, which was meant for you to read and change the IP
with your own machine's IP. To check your machine's IP, use ifconfig
as I've shown in class. In later examples, you can type the server's
IP address and port numbers as client's arguments.
- Some useful links for your project:
- You then can check out some more advanced documents (these are not
absolutely needed for the first phase of the project, read them if you
have time)
|
Useful Man Pages |
- Unix I/O, standard I/O: read,
write,
close,
open,
stat,
fclose,
fopen,
stdio.h,
unistd.h
- Network Programming API:
- Headers: socket.h,
netdb.h,
- Functions: accept,
bind,
connect,
getpeername,
getsockname,
listen,
recvfrom,
send,
sendto,
setsockopt,
socket,
gethostname,
gethostbyname,
gethostbyaddr,
getaddrinfo,
freeaddrinfo, inet_pton, inet_ntop
- Memory and string manipulation:
|
On Coding Style |
|
|