Lewis Benge. // using Windows.Networking; // using Windows.Networking.Sockets; var socket = new StreamSocket(); var hostName = new HostName("example.com");

Slides:



Advertisements
Similar presentations
@ScotHillier Web Parts Workflows Pages Libraries App Parts SharePoint-Hosted Apps Provider-Hosted Apps.
Advertisements

1 Working with the Bluetooth radio Nilanjan Banerjee Mobile Systems Programming University of Arkansas Fayetteville, AR
For(int i = 1; i
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Lawrence_ Configuring EDGE (Internet) using PC Suite Hardware & Software Requirements: PC with windows 98/2000 (service pack 4)/XP (service pack.
Msdevcon.ru#msdevcon. Windows Phone 8 Networking Survival Kit Andy Wigley Microsoft UK.
SPARTA - Durham July SPARTA Wavefront Processor Unit (WPU) API.
Certificates, SSL and IPsec Ahmed Muaydh Sara Bin Saif Shi-Jey Chou Advisor:Dr. Leszek Lilien.
Cloud-powered apps Apps that fetch content from the web or peer devices Faster, More Capable Built using networking APIs in Windows Higher performance.
Discovering Devices or Services over the Local Network
Announcement Final exam: Wed, June 9, 9:30-11:18 Scope: materials after RSA (but you need to know RSA) Open books, open notes. Calculators allowed. 1.
Hacking the Bluetooth Pairing Authentication Process Graduate Operating System Mini Project Siyuan Jiang and Haipeng Cai.
By: Joel Rodriguez.  International student from Mexico  Delicias, Chihuahua Mexico  Spanish  Sports and Music.
What’s new for Windows 8 Devs Part 3 Lewis Benge Devices & Integration Team TBWA\Digital Arts Network DEV216.
ECE 424 Embedded Systems Design Networking Connectivity Chapter 12 Ning Weng.
 TCP/IP is the communication protocol for the Internet  TCP/IP defines how electronic devices should be connected to the Internet, and how data should.
PeerFinder.Role = PeerRole.Client; PeerFinder.Role = PeerRole.Host;
// OPTIONAL: Set some custom name to identify self to others. PeerFinder.displayName = myNameToDisplay; PeerFinder.ConnectionRequested.
App to App Communication Developer’s Guide to Windows 10
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
Simple for you while still delighting your users.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface
Sockets API Overview Sockets with UDP Sockets with TCP Fast Sockets (Fast UDP) IP Multicasting.
Project 1. Goals  Write a simple TCP/IP client that supports a specific protocol  The server is running right now on login.ccs.neu.edu:27993  If your.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface.
Socket Programming Using JAVA Asma Shakil Semester 1, 2008/2009.
IBM - CVUT Student Research Projects USB Host with ATmega Microcontroller Jiří Dostál Martin Chloupek
Configuring AAA requires four basic steps: 1.Enable AAA (new-model). 2.Configure security server network parameters. 3.Define one or more method lists.
Module 5 : Security I Jong S. Bok
The Consolidated Protocols Maribor Meeting October 2013 Anartz Nuin & David Remón.
Five great reasons to use the new HttpClient API
Simplicity Tile Update Notification Service Tile Update Notification Service SOAP Windows Communication Foundation Windows Web Services SOAP.
 Socket class ◦ provides a rich set of methods and properties for network communications. The Socket class allows you to perform both synchronous and.
New IP Drivers using drvIpac Module Driver:CANopen Carrier Driver:GPFC drvIpac ?? CANopen Tip810 CAN Tip810 mv162GPFCatc40vipc310vipc616 Module driver.
System Migration to the PCI Environment BRIAN BENINGA, INFORMATION SECURITY ARCHITECT NOVEMBER 12, 2015.
File Input and Output Chapter 14 Java Certification by:Brian Spinnato.
Ian Mowers ECE-498 Design Presentation. Problem  Design a quiet wake-up alarm that is controlled by smartphone  Personal device, only wakes user  Room.
IP Configuration API. Network Interface Configuration NAIfconfigIsDeviceUp() NAIfconfigDeviceFromInterface() NAIfconfigBringDeviceUp() NAIfconfigSetIpAddress()
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 16 Socket Interface.
SIM323. Active Directory ? ? ? ? ? ? ? ? ?
Agenda Socket Programming The OSI reference Model The OSI protocol stack Sockets Ports Java classes for sockets Input stream and.
Byte Addressability Bytes are always 8 bits Word length typically ranges from 16 to 64 bits. Memory location assignments refer to successive byte locations.
 Follow the steps in order to solve the sync issue with the best fitness trackers;best fitness trackers  1. Reboot your Fitness Tracker and the device.
Developing for Chromecast Cast Companion Library & Custom Receiver Application.
Smart Home Environment
Don’t reinvent the wheel There are apps out there that are amazing at what they do – extensibility helps you leverage them. Better Together Extensibility.
By: Daniel Ascencio. Background of Current Wi-Fi  2 modes: Infrastructure and Ad hoc.
Midterm Review October Closed book one hand written page of notes of your own making October Closed book one hand written page of notes of.
App Peripherals CAN BILGIN, Authority Partners Inc.
Network Programming 10- SMTP-POP3
Network Programming in Java CS 1111 Ryan Layer May 3, 2010
Configure Instruction
Knole Computer Group June 2017 The USB Hub.
6/12/2018 3:52 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
EMBEDDED SYSTEMS Unit 5 EMBEDDED SYSTEMS UNIT 5.
Visit for more Learning Resources
Setting Up A Wireless Network
Tcpcrypt The case for ubiquitous transport level encryption
Networking with Java 2.
CompTIA IT Fundamentals Study Guide (FC0-U51)
Using the right networking APIs for your Universal Windows app
Building real-time web apps with WebSockets using IIS, ASP.NET and WCF
Microsoft Build /22/2018 3:05 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Implementation CAN Communication Engine
API Application Services
Jeremy Foster Michael Palermo
Chapter 16 Socket Interface.
TCP Connection establishment “3 way handshake”
Setting Up A Wireless Network
kfabric – network options
Presentation transcript:

Lewis Benge

// using Windows.Networking; // using Windows.Networking.Sockets; var socket = new StreamSocket(); var hostName = new HostName("example.com"); string serviceName = "4554"; // Connect using regular TCP (no security). await socket.ConnectAsync(hostName, serviceName, SocketProtectionLevel.PlainSocket); // OPTIONAL: Enable SSL for security. await socket.ConnectAsync(hostName, serviceName, SocketProtectionLevel.Ssl);

// using Windows.Storage.Streams; var writer = new DataWriter(socket.OutputStream); // There’s Write*() APIs for a large number of types. writer.WriteInt32(42); await writer.StoreAsync(); // OPTIONAL: Set endian-ness (defaults to LittleEndian). writer.ByteOrder = ByteOrder.BigEndian;

// using Windows.Storage.Streams; var reader = new DataReader(socket.InputStream); // Read in exactly 4 bytes of data. await reader.LoadAsync(4); // There’s Read*() APIs for a large number of types. int number = reader.ReadInt32(); // Read in as many bytes as are available, up to 64K. reader.InputStreamOptions = InputStreamOptions.Partial; await reader.LoadAsync(64 * 1024);

// OPTIONAL: Close the socket. socket.Close();

DEMO: Mashing up devices Bluetooth, WiFi, Sockets