EE450 Socket Programming Project Fall 2013

3 whether your programs work as you say they would in

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: please do study this tutorial carefully as soon as possible and before starting the project) http://www.beej.us/guide/bgc/ Once you run xwin and open an ssh connection to nunki.usc.edu, you can use a unix text editor like emacs to type your code and then use compilers such as g++ (for C++) and gcc (for C) that are already installed on nunki to compile your code. You must use the following commands and switches to compile yourfile.c or yourfile.cpp. It will make an executable by the name of "yourfileoutput”. gcc - o yourfileoutput yourfile.c - lsocket - lnsl - lresolv g++ - o yourfileoutput yourfile.cpp - lsocket - lnsl - lresolv Do NOT forget the mandatory naming conventions mentioned before! Also inside your code you need to include these header files in addition to any other header file you think you may need: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/wait.h> Submission Rules: 1. Along with your code files, include a README file. In this file write a. Your Full Name as given in the class list b. Your Student ID c. What you have done in the assignment d. What your code files are and what each one of them does. (Please do not repeat the project description, just name your code files and briefly mention what they do). e. What...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online