Instructor | Announcements | Course Info | Class Material | Schedule | Project | Grade | General Policy | Related Links


CmpE 207
Network Programming and Application
Spring 2013
College of Engineering




Richard Sinn
Office Hours: After class, by appointment or email only

Richard is currently a Senior Software Development Manager at Adobe. He is responsible for a suite of mobile and desktop software. Before Adobe, he was a Principal MTS/Director at eBay looking over various security projects. Prior to that, he served as a Security Architect/Manager at various Yahoo business units (Real Time Communication group, Yahoo Community, Yahoo Communications) from 2005 to 2011. He has also held various senior positions at IBM, Oracle and different Silicon Valley startup companies. Richard is an inventor and has filed over eighteen invention disclosures (patents). He has published a college textbook (Software Security Technologies). He is also a frequent writer for various magazines and journals, and a frequent speaker at regional and national technology conferences. As a scholar and supporter for academia, he has been teaching in the Computer Engineering and Computer Science departments at San Jose State University since 1998. He also served as Adjunct Professor at the University of Minnesota.



Check back every now and then for updates.


Students who do not provide documentation of having satisfied the class prerequisite and co-requisite requirements (if any) by the second class meeting will be dropped from the class.

New Prereq check procedure

We will adopt a new procedure (akin to that used by some of the other engineering departments):
At the beginning of the term, have all the students in the class provide a copy of their transcripts, with the prerequisite class grade highlighted. The instructor will then check off against the roster, and drop any and all students who do not provide such proof of having completed the prerequisite with a satisfactory grade.
For classes with co-requisite requirements (such as CMPE 110), the student will provide the transcript (proving that the class has already been passed) or a printout from MySJSU (proving that the student is currently enrolled).
Add the following to the class greensheet: ”Students who do not provide documentation of having satisfied the class prerequisite and co-requisite requirements (if any) by the second class meeting will be dropped from the class.



Bring a computer to class. You will need that for lecture assignment.


Add permission code

Please check back.

Honesty Pledge can be downloaded here.


Class time:

Every Monday at 6:30pm

Class room:

ENG 331




Course Information

Course Catalog Description

Development and implementation of networking software for building distributed applications. Application Programming Interfaces: BSD Sockets, Winsock, Remote Procedure Call and Middleware. Network programming project. Prerequisite: CMPE 206, or instructor consent.


Program Outcomes

1. Be able to demonstrate an understanding of advanced knowledge of network programming, network architecture and applications.

2. Be able to create different types of applications that use network programming in various different computer programming languages.

3. Be able to demonstrate leadership and the ability to participate in teamwork in an environment with network programming and applications.

4. Be aware of ethical, economic and enironmental implications of their work, as appropriate.

5. Be able to advance successfully in performing future research in network programming and applications.

6. Be able to communicate effectively, in both oral and written forms.


Course Goals and Student Learning Objectives

1. To provide an advaned overview of network programming and applications.

2. To provide in-depth implementation opportunities for network programming and applications.

3. To provide an introduction to advanced topics such as nodejs, multi-threaded network programming, mobile network programming and applications.



Apart from big term project(s) and presentation, there are homework assignments, a mid-term exam and a final exam. Some exams might be take-home. The weightings for grading are: Term Project(s) 40%, Homework 20%, Midterm 10%, Final Exam 10%, and Team Presentation / Lecture assignments 20%. Schedule and course materials subject to change with fair notice. Success in this course is based on the expectation that students will spend, for each unit of credit, a minimum of forty-five hours over the length of the course (normally 3 hours per unit per week with 1 of the hours used for lecture) for instruction or preparation/studying or course related activities including but not limited to internships, labs, clinical practica. Other course structures will have equivalent workload expectations as described in the syllabus.

No Late Assignment Submission. Put everything in an envelop when submit any material.


University Policies

Academic integrity

Students should know that the University’s Academic Integrity Policy is available at Your own commitment to learning, as evidenced by your enrollment at San Jose State University and the University’s integrity policy, require you to be honest in all your academic course work. Faculty members are required to report all infractions to the office of Student Conduct and Ethical Development. The Student Conduct and Ethical Development website is available at  
Instances of academic dishonesty will not be tolerated. Cheating on exams or plagiarism (presenting the work of another as your own, or the use of another person’s ideas without giving proper credit) will result in a failing grade and sanctions by the University. For this class, all assignments are to be completed by the individual student unless otherwise specified. If you would like to include in your assignment any material you have submitted, or plan to submit for another class, please note that SJSU’s Academic Policy F06-1 requires approval of instructors.

Campus Policy in Compliance with the American Disabilities Act

If you need course adaptations or accommodations because of a disability, or if you need to make special arrangements in case the building must be evacuated, please make an appointment with me as soon as possible, or see me during office hours. Presidential Directive 97-03 requires that students with disabilities requesting accommodations must register with the Disability Resource Center (DRC) at  to establish a record of their disability.

Dropping and Adding

Students are responsible for understanding the policies and procedures about add/drop, grade forgiveness, etc.  Refer to the current semester’s Catalog Policies section at   Add/drop deadlines can be found on the current academic calendarweb page located at  The Late Drop Policy is available at  Students should be aware of the current deadlines and penalties for dropping classes.

Information about the latest changes and news is available at the Advising Hub at






Class Material

Lecture Notes


Network Part

Data Communication and Networking, Fifth Edition, Dehrouz A. Forouzan


Lecture Notes


Non-Textbook: Reading material will be online on this web site before every lecture.




Classic Materials



Jan 28, 2013 - Mon

  • Course discussion
  • Network Introduction - Layering
  • Admin: Check prereq and sign statement
  • Homework 0: Download Wireshark and try it out by next week's class.
  • Admin
    • Add code
      • Per request by dept: No add code will be given at this point.
    • Prereq
      • You must show me you have prereq by either showing me in the SJSU system or other universities



Feb 4, 2013 - Mon - Last Day to Drop Courses Without an Entry on Student's Permanent Record (D)


Feb 11, 2013 - Mon - Last Day to Add Courses & Register Late (A)


Feb 18, 2013 - Mon



Feb 25, 2013 - Mon

  • Lab 3 Discussion
  • Web Tool Overview
  • Thread Part 1 (External sources)
  • Java Socket
  • Lab: Server Apps (Client and Server Pair)
  • Homework 2 Due


Mar 4, 2013 - Mon

  • Lab
    • Change your EchoServer (from last week's lab) to enable it to handle multiple EchoClients
    • Implement two versions of the EchoServer that uses Thread and/or Runnable interface
    • Set the Priorty of the Thread
    • Does setting a higher priorty or lower priorty changes the behaviors of the EchoServer?
    • Email source code and answers of question to ISA (Bhavna Hirani - and cc me.
    • Due tomorrow at 3pm.
  • Java Thread Part 2



Mar 11, 2013 - Mon


Mar 18, 2013 - Mon

  • Mid-term Exam
  • Closed book
  • Short questions format


Mar 25, 2013 - Mon



Web and Mobile Network Programming

Apr 1, 2013 - Mon

  • No School (University Holiday)


Apr 8, 2013 - Mon


Apr 15, 2013 - Mon

  • PHP 1
  • Review Midterm
  • Curve:
  • 100
  • Project Description
  • Lab
    • Modify the EchoClient to allow input of <file name> from the file system.
    • Design a mechanism where you can allow input of one or more files.
    • Read the file using <file name> and send the content of the file to the EchoServer
    • Modify the EchoServer to save the <file name>.
    • Research - If you need to change the EchoServer to a php backend. What do you need to do?
      • List all the implementation steps needed.
      • (You basically need to use HTTP to send the file over and save using php in the backend).
    • Email both coding and research answer to TA and cc Prof Sinn from grading.


Apr 22, 2013 - Mon

  • Project Discussion / Q&A
  • Group homework - Form a group of 4 or less and email me the members by next lecture
  • Review Last week's Lab
    • Networking programming with Java client and php web backend
    • Use httpurlconnection - doc under
    • setRequestMethod to POST
    • A few lines of code you have to build for today's lab
  • PHP 2
  • Lab
    • Modify the EchoClient to allow input of one of more files
    • Using network programming to send over the files to a php backend.
    • Using the php backend to save the file on the server.


Apr 29, 2013 - Mon


May 6, 2013 - Mon


May 13, 2013 - Mon

  • Project demo/presentation day
    • Please come to class on time
    • Prepare a piece of paper with all members' names printed clearly on it
    • Come to the front and present your project
    • 15 min max per group (5 min presentation, and 10 min demo)


  • You must use to submit your final report. Here is the info:
    • Class ID: 6445043
      Enrollment password: richardsinn
      Class name: CMPE 207 Spring 2013

    • There are three assignements:
      • "Project Report - Individual Part" is for you to submit your final report.
        • Each member of a group needs to submit his/her part of the project.
        • This short project report should include the following sections:
          • Client side: Description of technologies used, architecture, design, etc.
          • Web Server Backend: Description of technologies used, architecture, design, database schema, etc.
          • Test Cases: Ten detail test cases of how to test your client side and server backend.

      • "Project Report - Team Part"
        • Only one member of the group needs to submit this part.
        • This project report should include the following sections:
          • Interdomain communication: Details descrption of how interdomain communication is achieved: architecture, design, etc.
          • Extra features: Description of any extra features implemented in the project
          • Test Cases: Ten detail test cases of how to test your interdomain commmunication.

      • "Test Paper - Do not submit real report"
        • A test assignment for you to test use if you have not done so before. Please do not submit any real report.

May 20, 2013- Mon - Final Exam

  • Extra Credit Homework is HERE
  • Extra Credit Homework Due
  • Comprehensive, cover all topics.
  • Check grade at my.sjsu. Grade will be not be given via email.
  • No computer and Internet connection.
  • Project Reports Due
  • Starts at 6:30pm. Regular class time.

Overflow Topics




Term Project


Team File Sharing


The term project is a continuation of the lab exercises in class. The coding is a little more complex and it is done in a team environment. The goal of the project is to exercise the two different types of programming languages your learned for network programming. Please form a team of 4 or 3 for the term project.

Client Side

Using the Java programming language, design and implement a sockct program that will enable a user to upload a file to the web server backend. Your program should allow user to upload one or more files to the web server backend.

Web Server Backend

Using the php programming language, design and implement a web server backend that will enable the Java client side program to upload a file and save at the web server. Your program should allow a user to upload/save one or more files to the web server backend.

Interdomain Communication

Between web server backend domains, design and implement a cross domain communication mechansim using CURL to allow a file from one domain to be sent and saved in another domain.


In a group of four, you should have four pairs of client side and web server backend programs. And the web server backend programs should be able to cross communicate with each other to save files.



The requirements for the term project is flexible to allow room for creativity. Individual team can decide the following:





Check grade at my.sjsu. Grade will be not be given via email.


General Policy

The university and departmental policies and deadlines for course drop will be applied. Makeup exams cannot be offered, except under exceptional conditions, such as documented serious illness/accident, etc., and only at the professor's discretion.

Each student is responsible for his/her individual assignment, and must not copy anyone else's work. Students who borrow solutions from others will find themselves unable to pass the course. The minimum penalty for every student involved in the duplication of individual assignments or exams will be receiving a zero score on the submitted work.

For group project, all the work has to be done by your OWN group. Do not try to download "free code" from the Internet and hand in as a project. WE WILL FIND OUT. Do not share your work with others. So DO YOUR OWN WORK and EARN your grade.x


Related Links



Instructor | Announcements | Course Info | Class Material | Schedule | Project | Grade | General Policy | Related Links