Chapter 4 TCP 서버/클라이언트 u-Network Design Lab 3.

Slides:



Advertisements
Similar presentations
Socket Programming 101 Vivek Ramachandran.
Advertisements

Children’s Health A Call to Action Your Name Your MAFHK Region Insert Date.
B - body M - mass I - index. The body mass index (BMI), or Quetelet index, is a measure for human body shape based on an individual's weight and height.
Network Server Programming Expression Evaluation Tutorial #10 CPSC 261.
Socket Programming.
1 Java Networking – Part I CS , Spring 2008/9.
CSE/EE 461 Getting Started with Networking. Basic Concepts  A PROCESS is an executing program somewhere.  Eg, “./a.out”  A MESSAGE contains information.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Java Programming Practice.
Dr. Philip Cannata 1 Principles of Network Applications.
Calculating Body Mass Index (BMI) Body Mass Index (BMI) is used to assess a persons body weight. The number given allows you to see if you are underweight,
Hands On Networking Socket Programming Ram P Rustagi, ISE Dept Abhishek Gupta, ISE Dept Laxmi Kuber, MCA Dept June 28-30, 2012.
Chapter 4 Handling the Client Request: Form Data.
Definitions: Definitions: Obesity: Body Mass Index (BMI) of 30 or higher. Obesity: Body Mass Index (BMI) of 30 or higher. Body Mass Index (BMI): A measure.
WHAT IS BMI? BMI BODY MASS INDEX- BASED ON HEIGHT AND WEIGHT TO DETERMINE AMOUNT OF FAT AN INDIVIDUAL HAS OBESE BMI > 30.
 Socket  The combination of an IP address and a port number. (RFC 793 original TCP specification)  The name of the Berkeley-derived application programming.
BODY MASS INDEX. BMI CHARTS Several charts have been develop for use in assessing the BMI of clients: The chart below provides a quick and easy way to.
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
Importance of Lifetime Wellness Shannon Kelly. What is BMI? Body Mass Index (BMI) is a number calculated from a person's weight and height. The higher.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Dr. John P. Abraham Professor University of Texas Pan American Internet Applications and Network Programming.
Calculation.
Remote Shell CS230 Project #4 Assigned : Due date :
Managing Weight and Body Composition. Maintaining a Healthy Weight Body Image: The way your see your body For many people, it can be tied to perception.
How to Calculate Your Body Mass Index (BMI)
CSE/EE 461 Getting Started with Networking. 2 Basic Concepts A PROCESS is an executing program somewhere. –Eg, “./a.out” A MESSAGE contains information.
Socket Programming Introduction. Socket Definition A network socket is one endpoint in a two-way communication flow between two programs running over.
MATH AND HEALTHCARE PROFESSION AS A MEDICAL ASSISTANT MM Konette Davis
Socket Programming.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
1 Tips for the assignment. 2 Socket: a door between application process and end- end-transport protocol (UDP or TCP) TCP service: reliable transfer of.
Behaviours relating to body weight. What is BMI? Body mass index (BMI) is the most common method of determining whether a persons weight fits into a healthy.
How fit are you? Learning Objectives: * To consider different ways of measuring fitness. * To collect measurements and calculate your own BMI. * To use.
Agenda Socket Programming The OSI reference Model The OSI protocol stack Sockets Ports Java classes for sockets Input stream and.
A Local Area Network Chat Client ITTC LAN CHAT John Vincent Cecogo Jerikho Daguno Ardee Santos Elaine Mendoza Anjomar Pat Del Mindo Philip John Sales Philip.
1 Network Communications A Brief Introduction. 2 Network Communications.
KEEP SLIM NURIZATI KHAIRUNNISA BT MOHAMAD NAJIB ( ) HABIBAH BT HASAN ( )
Week-3 (Lecture-1). Some Important internet terms: Archie : A program used to search files at FTP sites. There are currently 30 Archie servers in the.
SOCKET PROGRAMMING Presented By : Divya Sharma.
Socket Programming original by Joonbok Lee KAIST heavily adapted by /Jens.
COMP2322 Lab 4 Socket Programming
UDP Socket Programming
Introduction To Application Layer
How to Calculate Your Body Mass Index (BMI)
Application layer 1 Principles of network applications 2 Web and HTTP
Two FTP connections from different hosts
MCA – 405 Elective –I (A) Java Programming & Technology
Professional Web Designing For Absolute Beginners
Socket Programming Cal Poly Pomona Young CS380.
Weightproblems by teenagers
Chapter 2 Application Layer
Computer Communication & Networks
The Internet An Overview.
Process-to-Process Delivery:
Since 1985, obesity among U.S. adults has risen dramatically
Introduction to Computer Concept
Starting TCP Connection – A High Level View
Factoring if/else code
2.Review HRA & 3.Calculate BMI Child Healthy Weight Protocol
PART 5 Transport Layer.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ECE 4450:427/527 - Computer Networks Spring 2017
Metric –U.S. Customary Comparisons
Chapter 5 멀티스레드 u-Network Design Lab 4.
Chapter 5 & 6 UDP 서버/클라이언트 u-Network Design Lab 5.
Outline Communications in Distributed Systems Socket Programming
1994 Methodology The percent of U.S. adults who are obese or who have diagnosed diabetes was determined by using data from the Behavioral Risk Factor Surveillance.
Internet Applications (Telnet, FTP)
IS 4506 Configuring the FTP Service
Obesity Trends Among U.S. Adults Between 1985 and 2010
Presentation transcript:

Chapter 4 TCP 서버/클라이언트 u-Network Design Lab 3

Why Socket Programming? “To build any Networked Application” WWW ( Internet Explorer , Firefox ) FTP (Filezilla) P2P (Limewire, Bit-torrent) u-Network Design

TCP Server – Client interaction u-Network Design

Telephone Analogy Socket() – Endpoint for communication (Telephone) Bind() - Assign a unique telephone number. (Phone No) Listen() – Wait for a caller. Connect() - Dial a number. Accept() – Receive a call. Send(), Recv() – Talk. Close() – Hang up. u-Network Design

Question 1 Write a TCP Server Program to convert all received message from Client to UPPERCASE. Send the UPPERCASE message back to client. u-Network Design

Sample Output Question 1 u-Network Design

Question 2 Write a Body Mass Index (BMI) Calculator Server Program. A useful tool to estimate a healthy body weight based on how tall a person is. Developed by Adolphe Quelet(1796-1874), and was known as the Quetelet Index. Client sends Weight(kg) and Height(m) to server Server return BMI value and weight status u-Network Design

Question 2 - continue BMI ( kg/m² ) = weight in kilograms —————————— height in meters² u-Network Design BMI Weight Status < 18.5 Underweight 18.5 -24.9 Normal 25 - 29.9 Overweight >= 30 Obese

Sample Output Question 2 Enter your Height(cm): 175 Enter your Weight(kg): 68 ====================== Your BMI value: 22.204 Your weight status: Normal Enter your Height(cm): 174 Enter your Weight(kg): 80 Your BMI value: 26.424 Your weight status: Overweight ! u-Network Design

Question 3 Modify FileSender.cpp to display % of data has been sent. 20% data has been transferred successfully. 50% data has been transferred successfully. 78% data has been transferred successfully. 89% data has been transferred successfully. 100% data has been transferred successfully. File transfer success ! u-Network Design

Thank you u-Network Design