LAN Chat server BY: VIPUL GUPTA VIKESH SINGH SUKHDEEP SINGH.

Slides:



Advertisements
Similar presentations
Categories of I/O Devices
Advertisements

Socket Programming By Ratnakar Kamath. What Is a Socket? Server has a socket bound to a specific port number. Client makes a connection request. Server.
Discussion Section Week 3 EE122: Introduction to Communication Networks Fall 2006.
Socket Programming.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
1 Java Networking – Part I CS , Spring 2008/9.
The Transport Layer Chapter 6. The Transport Service Services Provided to the Upper Layers Transport Service Primitives Berkeley Sockets An Example of.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L23 (Chapter 25) Networking.
COMP1681 / SE15 Introduction to Programming
CIS – Spring Instructors: Geoffrey Fox, Bryan Carpenter Computational Science and.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Client Server Model The client machine (or the client process) makes the request for some resource or service, and the server machine (the server process)
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L22 (Chapter 25) Networking.
28-Jun-15 Basic Protocols. 2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you.
Advanced Web 2012 Lecture 2 Sean Costain How the Web Works - Refresh Sean Costain 2012 The web is a matrix of servers that handle client requests.
Introduction 2: Internet, Intranet, and Extranet J394 – Perancangan Situs Web Program Sudi Manajemen Universitas Bina Nusantara.
I NTRODUCTION OF S OCKET P ROGRAMMING L.Aseel AlTurki King Saud University.
Boris Tshibangu. What is a proxy server? A proxy server is a server (a computer system or an application) that acts as an intermediary for requests from.
Socket Programming -What is it ? -Why bother ?. Basic Interface for programming networks at transport level It is communication end point Used for inter.
? INTERNET WHAT, WHY, HOW. DEFINITION The Internet is a massive public spiderweb of computer connections. It connects personal computers, laptops, tablets,
By: Joel Rodriguez.  International student from Mexico  Delicias, Chihuahua Mexico  Spanish  Sports and Music.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 12 Communicating over.
Introduction to Interprocess communication SE-2811 Dr. Mark L. Hornick 1.
Networks QUME 185 Introduction to Computer Applications.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
1 CSC111H Client-Server: An Introduction Dennis Burford
Lab 6: Introduction to Sockets (Web Programming – Part 1) Reference: Head First Java (2 nd Edition) by Kathy Sierra & Bert Bates.
15-1 Networking Computer network A collection of computing devices that are connected in various ways in order to communicate and share resources.
Internet Applications and Network Programming Dr. Abraham Professor UTPA.
Data Streams David Meredith Source Chapter 19 of – Shiffman, D. (2008). Learning Processing. Morgan Kaufmann, Burlington, MA. ISBN:

 TCP (Transport Control Protocol) is a connection-oriented protocol that provides a reliable flow of data between two computers.  TCP/IP Stack Application.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
1. I NTRODUCTION TO N ETWORKS Network programming is surprisingly easy in Java ◦ Most of the classes relevant to network programming are in the java.net.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
CS 11 java track: lecture 6 This week: networking basics Sockets Vectors parsing strings.
1 Network Programming and Java Sockets. 2 Network Request Result a client, a server, and network Client Server Client machine Server machine Elements.
Web Design & Development 1 Lec - 21 Umair Javed. Web Design & Development 2 Socket Programming.
Networks Sockets and Streams. TCP/IP in action server ports …65535 lower port numbers ( ) are reserved port echo7 time13 ftp20 telnet23.
BASIC INTERNET PROTOCOLS: http, ftp, telnet. Mirela Walczak.
Prepared by: Azara Prakash L.. Contents:-  Data Transmission  Introduction  Socket Description  Data Flow Diagram  Module Design Specification.
Field Trip #25 Creating a Client/Server By Keith Lynn.
Socket Programming Introduction. Socket Definition A network socket is one endpoint in a two-way communication flow between two programs running over.
Typical M²M applications InduBox GPRS sample applications.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Protocols Monil Adhikari. Agenda Introduction Port Numbers Non Secure Protocols FTP HTTP Telnet POP3, SMTP Secure Protocols HTTPS.
UNIT-6. Basics of Networking TCP/IP Sockets Simple Client Server program Multiple clients Sending file from Server to Client Parallel search server.
1 COMP 431 Internet Services & Protocols Client/Server Computing & Socket Programming Jasleen Kaur February 2, 2016.
Agenda Socket Programming The OSI reference Model The OSI protocol stack Sockets Ports Java classes for sockets Input stream and.
Java Networking I IS Outline  Quiz #3  Network architecture  Protocols  Sockets  Server Sockets  Multi-threaded Servers.
The Internet Technological Background. Topic Objectives At the end of this topic, you should be able to do the following: Able to define the Internet.
How Web Servers and The Internet Work The Basic Process.
SOCKET PROGRAMMING WITH JAVA By Collin Donaldson.
Java’s networking capabilities are declared by the classes and interfaces of package java.net, through which Java offers stream-based communications that.
1 Network Communications A Brief Introduction. 2 Network Communications.
Advance Computer Programming Networking Basics – explores the java.net package which provides support for networking. – Also Called “programming for the.
Networking Mehdi Einali Advanced Programming in Java 1.
Network Programming. These days almost all devices.
Client-Server Model and Sockets
MCA – 405 Elective –I (A) Java Programming & Technology
Socket Programming Cal Poly Pomona Young CS380.
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
Computer Networks Protocols
Presentation transcript:

LAN Chat server BY: VIPUL GUPTA VIKESH SINGH SUKHDEEP SINGH

INTRODUCTION Common mode of communication – “CELLULAR PHONES” High service rates – Not ECONOMICAL!!!. SOLUTION ???? LAN CHAT SERVER

FEATURES Chatting Voice Chat File Transfer Bulletin Board Display of friend list

USE CASE DIAGRAM

CONTEXT DIAGRAM

DATA FLOW DIAGRAM

Networking (java.net) Network Socket Allows a single computer to serve many client at once As well as serving different information also This is managed by port Port Numbered socket on a particular machine Multiple client can connect on same port Imaginary points TCP/IP reserves the lower 1024 ports 21 for FTP,23 for Telnet, 25 for , 80 for HTTP

Socket Basics A socket is a connection between two hosts. It can perform seven basic operations: Connect to a remote machine Send data Receive data Close a connection Bind to a port Listen for incoming data Accept connections from remote machines on the bound port

Client vs. Server Traditional definition - Client: user of Network Services - Server: Supplier of Network Services Analogy: Company phone line -I-Installing phone is like starting server -E-Extension is like port -P-Person who calls is the client : he specifies both host(general company number) & port(extension)

Working : Formation of socket to make a connection with the server Server will forward the request to specific client by making a socket connection with client For voice transfer client side data will be stored in rm format for 2-3 seconds Then it will be forwarded towards receiving client where it will be played This process of voice transfer will continue in a loop Using streams we can transfer any type of data

WORKING

Programming Basics Package: import java.net.*; import java.io.*; Opening a socket requires a hostname(or IP Address) and Port Number Socket client = new Socket(“ hostname “,port number); The URL and URL Connection classes simplify communication with web servers

Programming Basics(contd..) Create an input Stream to read the response from server BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream( )); Create an Output Stream that can be used to send info to the socket PrintWriter out = new PrintWriter(client.getOutputStream( )); out.println(“ Hi Dude!!”); out.print(“Howz life!!”); Close the socket when done client.close();

SERVER TO CLIENT COMMUNICATION CHANNEL CLIENT TO SERVER COMMUNICATION CHANNEL

USES : To efficiently communicate in a 1.Company 2.Institution 3.Hostel LIMITATIONS Delay of 2-3 seconds in voice transfer Server fails whole system fails

FUTURE EXPECTS 1.Integration of video chat using web cam. 2.Making it more secure. 3.Recovery management system.

THANKS…… QUERIES?????