CS 290: VoIP Project By Rudy Sevile. Summary AudioRecord AudioTrack UDP TCP Eclipse and LogCat.

Slides:



Advertisements
Similar presentations
Voice Instant Messenger Andrew Miller CS 491B Fall 2006 Professor Sun.
Advertisements

UDP and Multi-thread Socket Programming
Socket Programming.
Prepared By E. Musa Alyaman1 User Datagram Protocol (UDP) Chapter 5.
1 Java Networking – Part I CS , Spring 2008/9.
 Pearson Education, Inc. All rights reserved. 1 CH24 Networking : OBJECTIVES In this chapter you will learn:  To understand Java networking.
1 L53 Networking (2). 2 OBJECTIVES In this chapter you will learn:  To understand Java networking with URLs, sockets and datagrams.  To implement Java.
1 Programming Section 9 James King 12 August 2003.
Java Socket Support Presentation by: Lijun Yuan Course Number: cs616.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L24 (Chapter 25) Networking.
Reliable Networking Systems The goals: Implement a reliable network application of a file sharing network. Implement a reliable network application of.
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)
1 School of Computing Science Simon Fraser University CMPT 771/471: Internet Architecture and Protocols Socket Programming Instructor: Dr. Mohamed Hefeeda.
Networking Support In Java Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 25 Networking.
Networking with Java CSc 335 Object-Oriented Programming and Design Spring 2009.
Julia Ljunbjörk and Anita Mugenyi. What is a socket? Like a house Between the layers.
2: Application Layer 1 Socket Programming TCP and UDP.
JAVA Socket Programming Source: by Joonbok Lee, KAIST, 2003.
Socket Programming -What is it ? -Why bother ?. Basic Interface for programming networks at transport level It is communication end point Used for inter.
By: Joel Rodriguez.  International student from Mexico  Delicias, Chihuahua Mexico  Spanish  Sports and Music.
CS 352-Socket Programming & Threads Dept. of Computer Science Rutgers University (Thanks,this slides taken from er06/
CS4273: Distributed System Technologies and Programming I Lecture 5: Java Socket Programming.
NET0183 Networks and Communications Lecture 31 The Socket API 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks Lecture powerpoints from.
 Socket  The combination of an IP address and a port number. (RFC 793 original TCP specification)  The name of the Berkeley-derived application programming.
VIII. UDP Datagrams and Sockets. The User Datagram Protocol (UDP) is an alternative protocol for sending data over IP that is very quick, but not reliable:
CS 424/524: Introduction to Java Programming Lecture 25 Spring 2002 Department of Computer Science University of Alabama Joel Jones.
-1- Georgia State UniversitySensorweb Research Laboratory CSC4220/6220 Computer Networks Dr. WenZhan Song Associate Professor, Computer Science.
Network Programming and Sockets CPSC 363 Computer Networks Ellen Walker Hiram College (Includes figures from Computer Networking by Kurose & Ross, © Addison.
University of the Western Cape Chapter 12: The Transport Layer.
UDP vs TCP UDP Low-level, connectionless No reliability guarantee TCP Connection-oriented Not as efficient as UDP.
 TCP (Transport Control Protocol) is a connection-oriented protocol that provides a reliable flow of data between two computers.  TCP/IP Stack Application.
Socket Programming in Java CS587x Lecture 4 Department of Computer Science Iowa State University.
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 Porting VoIP Applications to DCCP Speaker: Jia-Yu Wang Adviser: Quincy Wu School: National Chi Nan University.
Object Oriented Programming in Java Lecture 16. Networking in Java Concepts Technicalities in java.
The Socket Interface Chapter 21. Application Program Interface (API) Interface used between application programs and TCP/IP protocols Interface used between.
1 Chapter 28 Networking. 2 Objectives F To comprehend socket-based communication in Java (§28.2). F To understand client/server computing (§28.2). F To.
Java Sockets Programming
Java Socket programming. Socket programming with TCP.
L 2 - 1 3( 1/ 20) : Java Network Programming. The Socket API The previous contents describe client-server interaction that application programs use when.
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.
Gwynn Fewell. Build off of Brice Higlemann’s work from 2010 Mobile app becomes the CAB to control one train at a time App can switch between trains CAB.
1 CSCD 330 Network Programming Spring 2014 Some Material in these slides from J.F Kurose and K.W. Ross All material copyright Lecture 7 Application.
Today’s topic: UDP Reliable communication over UDP.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Inetaddress Class When establishing a connection across the Internet, addresses.
TCP/IP Protocol Stack IP Device Drivers TCPUDP Application Sockets (Gate to network) TCP: –Establish connection –Maintain connection during the communication.
1 Netprog 2002 TCP/IP UDP/IP in Java Based on Java Network Programming and Distributed Computing.
1 CSCD 330 Network Programming Fall 2013 Some Material in these slides from J.F Kurose and K.W. Ross All material copyright Lecture 8a Application.
Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 2: One on one (101)
UDP User Datagram Protocol. About the UDP A commonly used transport protocol Does not guarantee either packet delivery or order The packets may travel.
Socket programming in C. Socket programming Socket API introduced in BSD4.1 UNIX, 1981 explicitly created, used, released by apps client/server paradigm.
Agenda Socket Programming The OSI reference Model The OSI protocol stack Sockets Ports Java classes for sockets Input stream and.
Network Programming. These days almost all devices.
Distributed Systems1 Socket API  The socket API is an Interprocess Communication (IPC) programming interface originally provided as part of the Berkeley.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 33 Networking.
Socket Programming original by Joonbok Lee KAIST heavily adapted by /Jens.
Object-Orientated Analysis, Design and Programming
A Brief Intro to the RPC Project Framework
CS 1652 Jack Lange University of Pittsburgh
Socket Programming Cal Poly Pomona Young CS380.
Network Programming Introduction
The Socket API 9/17/2018.
The Transport Layer Socket Programming
Lecture 11 Socket Programming.
Remote Procedure Call (RPC)
CSCD 330 Network Programming
Socket Programming.
CSCD 330 Network Programming
NETWORK PROGRAMMING CNET 441
Presentation transcript:

CS 290: VoIP Project By Rudy Sevile

Summary AudioRecord AudioTrack UDP TCP Eclipse and LogCat

AudioRecord Use this class to record your voice from the microphone. Use startRecording() to start the recording and then “pull” data from the microphone using read(byte[] buffer, int offsetInBytes, int sizeInBytes). Call stop() to stop the recorder and release() to release the resources.

AudioTrack Allows you to play audio. As with the AudioRecord, a buffer is set. Use play() to start playing and audio track, then send data to be played with write(byte[] buffer, int offsetInBytes, int sizeInBytes). Call stop() to stop the player and release() to release the resources.

UDP When implementing UDP, you can rely on the DatagramSocket class to make a connection. This class sends and receives DatagramPacket. Create a new socket using the DatagramSocket class then create a packet using the DatagramPacket class. The socket has a send() that takes a DatagramPacket as argument. The method receive() allows receiving DatagramPacket.

TCP Use the ServerSocket class to wait on TCP connection. Once a ServerSocket is created, use accept(). It will wait for an incoming connection and return a socket when one arrives. Use a Socket to establish a TCP connection. The connection can occur in the constructor if you pass enough parameters, or through the connect() method.

Eclipse and LogCat

References Some links that you may find useful: Hello World: Android Library: Sample code examples: