By: Joel Rodriguez.  International student from Mexico  Delicias, Chihuahua Mexico  Spanish  Sports and Music.

Slides:



Advertisements
Similar presentations
Socket Programming. Basics Socket is an interface between application and network – Application creates a socket – Socket type dictates the style of communication.
Advertisements

1 MP2: P2P File Server Hoang Nguyen. 2 Outline Basic network concepts revisited –Client/Server, Peer-to-peer –IP address, TCP/UDP Basic network programming.
Network Programming Chapter 11 Lecture 6. Networks.
Socket Programming.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 17 Introduction to the Application.
An 8051 Based Web Server Project by Mason Kidd Advised by Dr. Schertz.
1 L53 Networking (2). 2 OBJECTIVES In this chapter you will learn:  To understand Java networking with URLs, sockets and datagrams.  To implement Java.
CS3771 Today: network programming with sockets  Previous class: network structures, protocols  Next: network programming Sockets (low-level API) TODAY!
Intro Alexei Miagkov: researching GUI networking sound aspects of Java Walter Kammerer: researching networking concepts documenting real-time media concepts.
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.
Distributed systems (NET 422) Prepared by Dr. Naglaa Fathi Soliman Princess Nora Bint Abdulrahman University College of computer.
I NTRODUCTION OF S OCKET P ROGRAMMING L.Aseel AlTurki King Saud University.
CEG3185 Tutorial 4 Prepared by Zhenxia Zhang Revised by Jiying Zhao (2015w)
In association with Technion and Qualcomm. Project supervisor: Tatyana Finkel. Technion Israel Institute of Technology.
Hands On Networking Socket Programming Ram P Rustagi, ISE Dept Abhishek Gupta, ISE Dept Laxmi Kuber, MCA Dept June 28-30, 2012.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
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.
Network Services Networking for Home & Small Business.
CS 390- Unix Programming Environment CS 390 Unix Programming Environment Topics to be covered: Distributed Computing Fundamentals.
Outline Overview Video Format Conversion Connection with An authentication Streaming media Transferring media.
REVIEW On Friday we explored Client-Server Applications with Sockets. Servers must create a ServerSocket object on a specific Port #. They then can wait.
Internet Applications and Network Programming Dr. Abraham Professor UTPA.
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
Gwynn Fewell CCR – COMPUTER CONTROLLED RAILROAD. PROJECT DEFINITION  Use Mobile Devices to run trains on the CCR (Computer Controlled Railroad)  Build.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 26.
Establishing communication with Envirobat using TCP/IP Presented by Apourva Parthasarathy Date : 18/06/13.
 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.
Chapter 2 Applications and Layered Architectures Sockets.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
Remote Shell CS230 Project #4 Assigned : Due date :
RMI remote method invocation. Traditional network programming The client program sends data to the server in some intermediary format and the server has.
Lab 2: TCP /IP communication Southern Methodist University Bryan Rodriguez.
CS390- Unix Programming Environment CS 390 Unix Programming Environment Java Socket Programming.
Agilent Technologies Copyright 1999 H7211A+221 v Capture Filters, Logging, and Subnets: Module Objectives Create capture filters that control whether.
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
Position of application layer. Application layer duties.
CS 145A Implementation Issues Netlab.caltech.edu/course.
Prepared by: Azara Prakash L.. Contents:-  Data Transmission  Introduction  Socket Description  Data Flow Diagram  Module Design Specification.
Socket Programming Lab 1 1CS Computer Networks.
Joe Cohen Presentation Overview  Project definition and requirements  Solution process and explanation  Methodology.
Client/Server Socket Programming Project
Advanced Java Session 4 New York University School of Continuing and Professional Studies.
Socket Programming.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Copyright © 2012 Kendall Electric, Inc. All rights reserved.
Networking OSI (Open Systems Interconnection) model of computer networking, seven layers (the Application, Presentation, Session, Transport, Network, Data.
Berkeley Socket Abstraction
Prepared by Dr. Jiying Zhao University of Ottawa Canada.
UNIT-6. Basics of Networking TCP/IP Sockets Simple Client Server program Multiple clients Sending file from Server to Client Parallel search server.
Inter-Process Communication 9.1 Unix Sockets You may regard a socket as being a communication endpoint. –For two processes to communicate, both must create.
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 16 Socket Interface.
Project Title: Establishing communication between the server and Envirobat using TCP/IP Presented by Apourva.P.
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
Java Networking I IS Outline  Quiz #3  Network architecture  Protocols  Sockets  Server Sockets  Multi-threaded Servers.
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.
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.
1 K. Salah Application Layer Module K. Salah Network layer duties.
LAN Chat server BY: VIPUL GUPTA VIKESH SINGH SUKHDEEP SINGH.
Internet Socket Programing
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.
Socket Programming Cal Poly Pomona Young CS380.
CSC Advanced Unix Programming, Fall 2015
Presentation transcript:

By: Joel Rodriguez

 International student from Mexico  Delicias, Chihuahua Mexico  Spanish  Sports and Music

Develop a walkie-talkie protocol and interface Extend to pre-emptive bidirectional connections. Consider many to many and client-server applications

Decided to go with the Client Server Approach Ideas 1, 2 and 3 Decided to use TCP to communicate with the server and UDP to communicate between devices.

C# server and client communication TCP C# clients communication using UDP Android client and C# server communication TCP Android client and C# client communication using UDP

Create a Socket Bind IP Address Starts listening on one on the ports. Accept connections, reads and writes to client side with a stream. Sends and receives byte[] which interpretation depends on Protocol used by designer. Close socket Transmission Control Protocol Must be connected to communicate

Open the socket Bind IP Address Sends and receives byte[] which interpretation depends on Protocol used by designer. Close socket User Datagram Protocol No need to be connected to communicate Thread Listener

 Server C#  Client C#  Android Application  XML for users graphics  Java for background work  I have more familiarity and access to android technologies.  Due to not having experience developing in these technologies before this project, android represented having a better starting point.

1.Server Accepts connection 2.Creates a new Client Object and binds the stream to it. 3.Adds the new object to the Clients linked list. 4.Adds the IP Address to the IP Array. Server User Attempts Connection with the server Sends acknowledgement of connection back to server 1.Sends Request 2.Once accepted enables all the functionalities on the form for the user. 3.Starts listener thread Client

 Client A sends a request to the server asking for the IP of the users currently connected.  Server gets all the IP addresses from the Array, puts them on a string and sends the String to the client.  The client gets the String containing the IP addresses of the users currently connected, parse it and start sending data to each individual device using UDP sockets.  The client B listener receives the encoded data, decodes it and sends the information back to the main tread to be displayed by on the user Interface. Client B Client A Request Server IP Addresses Encoded Data Client B Listener Decoded Data

Client A 1.Opens the form class. 2.Sends UDP sockets 1.Sets Parameters for recording -Sample info -Gets handle for hardware devices -Sets the wave format to for capture -Sets buffer with description for storage -Sets the playback buffer description 2.Makes a request for IP Addresses 3.Seds a Call request for Listeners to get ready to receive the bytes. 4.Starts sending the bytes using UDP Sockets Opens form Request IP addresses Used DirectX.DirectSound dll 1.Opens the form class. 2.Sends UDP sockets 3.Calls Play function Client B Starts sending the bytes Sends Request to the listener Call Class A Server Requests IP addresses Sends IP addresses Calls Play Function 1.Plays Voice Call Class B

Network security on campus Phone settings Bytes manipulation Did not solve: Sending Voice Pictures

Take my time before coding Draw many diagrams Try to picture the problem in something I like, for me it was music. When something stops my progress research it but if it takes to long ask somebody. CS350 Data structure Socket programing Assembly language Handling Bytes Voice

Special Thanks to: Dr. Pankratz Dr. McVey Dr. Agarwal Chris Gusman Gwynn Fewell 460 Classmates