EE450-project-Nazarian-Summer2011v3

EE450-project-Nazarian-Summer2011v3 - EE 450 Summer 2011...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 450 Summer 2011 Nazarian Socket Programming Project Assigned: Friday , June 10 Due for Phase 1: Friday , June 24 (by 11:59am - noon) Due for Phase 2: Friday, July 15 (by 11:59am - noon) Due for Phase 3: Friday, July 29 (by 11:59am - noon) Maximum points: 100 The objective of this assignment is to familiarize you with UNIX socket programming. This assignment is worth 10% of your overall grade in this course. Notes: This is an individual assignment and no collaborations are allowed. You may refer to the syllabus to review the academic honesty policies, including the penalties. Any questions or doubts about what is cheating and what is not, should be referred to the instructor or the TAs. Any references (pieces of code you find online, etc.) used, should be clearly cited in the readme.txt file that you will submit with your code. We may pick some students in random to demonstrate their design and simulations. Post your questions on project discussion forum. You are encouraged to participate in the discussions. It may be helpful to review all the questions posted by other students and the answers. A. Problem Overview: In this project an auction process in eBay is simulated. The auction consists of the sellers that offer goods, the eBay department which manages the auction and the database of goods, and the buyers that are interested in buying goods. The communication among the sellers, eBay and the buyers are performed over TCP and UDP sockets in a network with client-server architecture. The project has 3 major phases: 1) Offering the items from sellers to eBay database system, 2) Bidding to eBay from the buyers, and 3) Sending the winner buyer to appropriate seller. In Phases 1 and 3 all communications are through TCP sockets. However, in phase 2 all communications are over UDP sockets. B. Code and Input files: You must write your programs either in C or C++ on UNIX. In fact, you will be writing (at least) 3 different pieces of code: 1- Seller Piece You must create 2 concurrent Sellers
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
i. Either by using fork() or a similar Unix system call. In this case, you probably have only one piece of code for which you need to use one of these names: Seller.c or Seller.cc or Seller.cpp. Also you must call the corresponding header file (if any) Seller.h . Note that it is mandatory to follow all the naming convention mentioned in this project definition. Make sure the first letter of the word ‘Seller’ is capital. ii. Or by running 2 instances of the Seller code. However in this case, you probably have 2 pieces of code for which you need to use one of these sets of names: ( Seller1.c, Seller2.c ) or ( Seller1.cc, Seller2.cc,) or ( Seller1.cpp and Seller2.cpp) . Also you must call the corresponding header file (if any) Seller.h or Seller1.h and Seller2.h . Make sure the first letter of the word ‘Seller’ is capital. 2-
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 14

EE450-project-Nazarian-Summer2011v3 - EE 450 Summer 2011...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online