Software Engineering and Architecture

Slides:



Advertisements
Similar presentations
Network Programming How do Server, Client, and Display applications communicate with each other? Client Server Client Display.
Advertisements

Sockets Tutorial Ross Shaull cs146a What we imagine Network request… response… The packets that comprise your request are orderly.
GDB/KGDB HARISH CHETTY. WHAT IS GDB/KGDB  GNU Project Debugger  Supports Windows & Linux  USES  Pass anything to the program  Break anywhere within.
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.
Network Programming CS3250. References Core Java, Vol. II, Chapter 3. Book examples are available from
Networks 1 CS502 Spring 2006 Network Input & Output CS-502 Operating Systems Spring 2006.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L22 (Chapter 25) Networking.
CS-3013 & CS-502, Summer 2006 Network Input & Output1 CS-3013 & CS-502, Summer 2006.
CEG3185 Tutorial 4 Prepared by Zhenxia Zhang Revised by Jiying Zhao (2015w)
Socket Programming in Java -First Step of Network Programming-
By: Joel Rodriguez.  International student from Mexico  Delicias, Chihuahua Mexico  Spanish  Sports and Music.
Socket Lab Info. Computer Network. Requirement Use TCP socket to implement a pair of programs, containing a server and a client. The server program shall.
Introduction to Interprocess communication SE-2811 Dr. Mark L. Hornick 1.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae, VUW Networking COMP # 21.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
CS 390- Unix Programming Environment CS 390 Unix Programming Environment Topics to be covered: Distributed Computing Fundamentals.
Lab 6: Introduction to Sockets (Web Programming – Part 1) Reference: Head First Java (2 nd Edition) by Kathy Sierra & Bert Bates.
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
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.
1 Networking Chapter Distributed Capabilities Communications architectures –Software that supports a group of networked computers Network operating.
1 NAT & RTP Proxy Date: 2009/7/2 Speaker: Ni-Ya Li Advisor: Quincy Wu.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 3: Basing Software Development on Reusable Technology.
Remote Shell CS230 Project #4 Assigned : Due date :
Web Design & Development 1 Lec - 21 Umair Javed. Web Design & Development 2 Socket Programming.
Sockets Sockets A socket is an object that encapsulates a TCP/IP connection There is a socket on both ends of a connection, the client side and the server.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae, VUW Networking COMP # 22.
Introduction to Sockets “A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port.
CS390- Unix Programming Environment CS 390 Unix Programming Environment Java Socket Programming.
Networking Tutorial Special Interest Group for Software Engineering Luke Rajlich.
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
Socket Programming Introduction. Socket Definition A network socket is one endpoint in a two-way communication flow between two programs running over.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
TCP/IP Protocol Stack IP Device Drivers TCPUDP Application Sockets (Gate to network) TCP: –Establish connection –Maintain connection during the communication.
Socket Programming in Java -First Step of Network Programming-
Communications in Client-Server Systems the details…
Professional Subjects. COMPUTER NETWORK MECHANIC MACHINE AND DEVICE MECHANIC CHEF - COOK SECONDARY GRAMMAR SCHOOL.
Java Networking I IS Outline  Quiz #3  Network architecture  Protocols  Sockets  Server Sockets  Multi-threaded Servers.
SOCKET PROGRAMMING WITH JAVA By Collin Donaldson.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae david streader, VUW Echo Networking COMP
Powerpoint Templates Page 1 Powerpoint Templates CS Networks Laboratory HANDLED BY, A.MAHESH PRIYA L/IT.
The Echo Server Problem. Contents  Basic Networking Concepts  The Echo Server Problem.
The Echo Server Problem. Contents  Basic Networking Concepts  The Echo Server Problem.
Internet Socket Programing
Client-Server Communication
Echo Networking COMP
Networking COMP
MCA – 405 Elective –I (A) Java Programming & Technology
Some bits on how it works
Beyond HTTP Up to this point we have been dealing with software tools that run on browsers and communicate to a server that generates files that can be.
Networks and Client/Server Applications
Socket Programming Cal Poly Pomona Young CS380.
CH5 TCP Client - Server Example:
Socket Programming in Java
Software Engineering for Internet Applications
National University of Laos
CS-401 Assembly Language Programming
Snippet Engine as a Database Server
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
Software Engineering and Architecture
CS18000: Problem Solving and Object-Oriented Programming
Software Engineering and Architecture
Presentation transcript:

Software Engineering and Architecture Java Sockets

Henrik Bærbak Christensen Networking from Code The most fundamental abstraction of network is the Socket So, your computer has an IP address, and you then create a Socket with a specific port number And you have something you can address from a client AU CS Henrik Bærbak Christensen

The Socket Abstraction Once a socket is established you can get an input- and output stream That is, you can read and write to the stream, just as you would read and write to a File! AU CS Henrik Bærbak Christensen

Example from Java Tutorial The Echo Server Just returns anything you send to it (Booooring...) Start the server on port 37000 And a client AU CS Henrik Bærbak Christensen

Henrik Bærbak Christensen Echo Echo Server AU CS Henrik Bærbak Christensen

Henrik Bærbak Christensen Echo Echo Client AU CS Henrik Bærbak Christensen

Henrik Bærbak Christensen Exercise Now, you have enough to build World of WarCraft  Tack a bit of graphics on... Almost... Quality Attributes needed Security Performance Availability AU CS Henrik Bærbak Christensen