Chapter 5 멀티스레드 u-Network Design Lab 4.

Slides:



Advertisements
Similar presentations
Overview Network security involves protecting a host (or a group of hosts) connected to a network Many of the same problems as with stand-alone computer.
Advertisements

METEOROLOGICAL TELECOMMUNICATION AND METCAP A GLANCE TO NETWORK BRIEFLY Ömer Hüdai ALBAYRAK 2010ALANYA.
TCP Lightweight Agent Project Goal : Implementation of a generic agent that will be able to measure connection parameters between a client and a server.
Web Server Distributor1 Lecturer: Dr. Reuven Cohen Lab Engineer: Eng. Itai Dabran Project Supervisor: Daniel Segal Authors: Rony Fuks Yossi Peery Gil.
CMPE208 Presentation Terminal Access Controller Access Control System Plus (TACACS+) By MARVEL (Libing, Bhavana, Ramya, Maggie, Nitin)
COEN 445 Communication Networks and Protocols Lab 4
The Application Layer Chapter 7. Where are we now?
UDP - User Datagram Protocol UDP – User Datagram Protocol Author : Nir Shafrir Reference The TCP/IP Guide - ( Version Version.
CHATROOM PROJECT Supervised by DAN WITZNER HANSEN Group Members ESWAR EMMADI SURESH KUMAR DONTHA.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
Network Programming CS3250. References Core Java, Vol. II, Chapter 3. Book examples are available from
© Lethbridge/Laganière 2001 Chap. 3: Basing Development on Reusable Technology 1 Let’s get started. Let’s start by selecting an architecture from among.
Julia Ljunbjörk and Anita Mugenyi. What is a socket? Like a house Between the layers.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Chapter 26 Client Server Interaction Communication across a computer network requires a pair of application programs to cooperate. One application on one.
Lecturer : Ms.Trần Thị Ngọc Hoa Chapter 8 File Transfer Protocol – Simple Mail Transfer Protocol.
Chapter 31 File Transfer & Remote File Access (NFS)
Module 1: Reviewing the Suite of TCP/IP Protocols.
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
Assignment 3 A Client/Server Application: Chatroom.
Introduction to Threads CS240 Programming in C. Introduction to Threads A thread is a path execution By default, a C/C++ program has one thread called.
CS/EE 145A Reliable Transmission over Unreliable Channel Netlab.caltech.edu/course.
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
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.
1 Welcome to CSC 301 Web Programming Charles Frank.
© Lethbridge/Laganière 2005 Chap. 3: Basing Development on Reusable Technology The Client-Server Architecture A distributed system is a system in.
TFTP: Trivial file transfer protocol
TCP Sockets Reliable Communication. TCP As mentioned before, TCP sits on top of other layers (IP, hardware) and implements Reliability In-order delivery.
Client/Server Socket Programming Project
 Socket class ◦ provides a rich set of methods and properties for network communications. The Socket class allows you to perform both synchronous and.
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.
Module 5: Managing Addresses and Address Lists.
Socket programming in C. Socket programming Socket API introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm.
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.
The Echo Server Problem. Contents  Basic Networking Concepts  The Echo Server Problem.
The Echo Server Problem. Contents  Basic Networking Concepts  The Echo Server Problem.
1 Issues in Client/Server Refs: Chapter 27 Case Studies RFCs.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
COMP2322 Lab 4 Socket Programming
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Chapter 9: Transport Layer
Hypertext Transfer Protocol
Tiny http client and server
Project Management: Messages
Boots Cassel Villanova University
CSC410: Distributed System
PA1 Discussion.
Networks Problem Set 1 Due Oct 3 Bonus Date Oct 2
Net 323 D: Networks Protocols
Client-Server Interaction
Operating Systems (CS 340 D)
File Transfer Protocol
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Chapter 4 Multithreading programming
Chapter 4 TCP 서버/클라이언트 u-Network Design Lab 3.
TCP/IP Networking An Example
Time Gathering Systems Secure Data Collection for IBM System i Server
Net 323 D: Networks Protocols
Software Engineering for Internet Applications
Issues in Client/Server Programming
Internet Protocols IP: Internet Protocol
TA: Donghyun (David) Kim
Operating Systems (CS 340 D)
Computer Networks CMSC417 Prof. Ashok K . Agrawala
Chapter 5 & 6 UDP 서버/클라이언트 u-Network Design Lab 5.
Chapter 2 Application Layer
Light-Weight Process (Threads)
IS 4506 Configuring the FTP Service
Presentation transcript:

Chapter 5 멀티스레드 u-Network Design Lab 4

What is Multi-threading A process is a running program. You can run more than one process at a time. BUT they run as processes in their own separate memory space. How to run a program in the same memory space as another running process? Threads are a way for a program to split itself into two or more simultaneously (or pseudo- simultaneously) running tasks These threads share resource and global variables. u-Network Design

u-Network Design Single Threaded Multi Threaded

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

Sample Output Question 1 Client 1 Client 2 u-Network Design Client 3

Question 2 Modify FileReceiver.cpp to allow multiple clients to send file at the same time. [TCP Server] Client IP 192.168.94.109 is connected. [TCP Server] Client IP 192.168.94.109 is Sending file[test] 19 bytes. [TCP Server] Client IP 127.0.0.1 is connected. [TCP Server] Client IP 127.0.0.1 is Sending file[a.hwp] 123 bytes. [TCP Server] Client IP 192.168.94.109 sent file[test] successfully. [TCP Server] Client IP 127.0.0.1 sent file[a.hwp] successfully. u-Network Design

Question 3 Write a simple TCP User Authentication Program with multi-threading using _beginthreadex() and _endthreadex(). Client sends username to server. Server replies the member’s status back to client. u-Network Design

Sample Output Question 2 Enter your username: dongseo …..Checking your status……. ====================== Username: dongseo Status: Member Enter your username: thread Username: thread Your status: Admin Enter your username: udesign Username : udesign Your status: Non-member u-Network Design

Thank you u-Network Design