390 likes | 644 Vues
Module 8: Connecting Network-Enabled Windows CE-Devices. Overview. Windows CE 3.0 Networking Windows CE Web Clients Windows CE Web Server Configuring COM and DCOM Networking API Support Support for MSMQ Support for SNMP. Windows CE 3.0 Networking. New Features Web Server Support
E N D
Overview • Windows CE 3.0 Networking • Windows CE Web Clients • Windows CE Web Server • Configuring COM and DCOM • Networking API Support • Support for MSMQ • Support for SNMP
Windows CE 3.0 Networking • New Features • Web Server Support • Distributed Component Object Model (DCOM) • Microsoft Message Queue (MSMQ) • Enhancements • RAS • Simple Network Management Protocol (SNMP) • TCP/IP • Network Driver Interface Specification (NDIS) • DNS/ WINS Name Resolution • Dynamic Host Configuration Protocol (DHCP) • IP Helper APIs
Windows CE Web Clients • Pocket Internet Explorer • IE for Windows CE • Web Browser Control • HTML Viewer Control • Comparing the Web Clients
Pocket Internet Explorer • Supports HTML 3.2: • Tables • GIFs and JPEGs • JavaScript (in PIE 3.0) • Does Not Support: • CSS • DHTML • ActiveX Controls /Embedded Java • VBScript • Memory Footprint =1.3MB
IE for Windows CE • Supports HTML 4.0: • CSS • DHTML • ActiveX Controls and Plug Ins • JavaScript and Java Applets • Tables • GIFs and JPEGs • JavaScript • Does Not Support: • VBScript • Footprint = 3.1MB
Web Browser Control • ActiveX Control • Adds Browsing Capabilities • Requires IE for Windows CE • CoCreateInstance(… • CLSID_WebBrowser • IID_IWebBrowser2
HTML Viewer Control • Supports HTML 3.2 • Used by: • PIE (ver 1.0 and 2.0) • Windows Windows CE Help (PEGHELP.EXE) • Uses the Files: htmlctrl.h, htmlview.lib and htmlview.dll • Uses the APIs InitHTMLControl and CreateWindow(…”DISPLAYCLASS”…) • Does not display images, run JavaScript, or perform any URL processing • Requires a Web browser Control to use it as a web browser
Comparing the Web Clients IE for PIE HTML Viewer Control Windows CE
Windows CE Web Server • CE Web Server Core Features • Web Server Support • Windows 2000 Web Server • Windows CE Web Server • MinComm Web Server • MaxAll Web Server
Windows CE Web Server Core Features • Active Server Pages (ASP) • Scripting Support • Internet Server API (ISAPI)
Web Server Support Windows 2000 Windows CE • HTML, ASP, • ISAPI • MTS, Certificate Server, Index Server, MSMQ, • Windows Media – Webcasting, Active Streaming • Database Connectivity • Active Directory • HTML, ASP • ISAPI
Windows 2000 Web Server MMC.EXE INETINFO.EXE ASP.DLL ISAPI_Ext.DLL ISAPI_Filt.DLL
DEVICE.EXE HTTPD.DLL ASP.DLL ISAPI_Ext.DLL ISAPI_Filt.DLL Windows CE Web Server HTTPDSVC.EXE
Configuring COM and DCOM • Configuring COM in Platform Builder • Configuring DCOM in Platform Builder
Configuring Basic COM in Platform Builder • In-Process Server Only • Memory Footprint = 100K • Configuration File Changes • CESYSGEN.BAT • COMMON.BIB
Configuring DCOM in Platform Builder • All three server types supported • Memory Size = 700K • Configuration Files • CESYSGEN.BAT • DCOM.BIB
Networking API Support • Windows Sockets • WinInet Functions • Internet Protocol Helper API
Supported Features • Streams and Datagrams • TCP/IP, IrDA • Synchronous Communication • Functions such as socket(), • send(), recv(), connect(), and • bind() • Unsupported Features • Asynchronous, message driven • APIs such as WSASend • WSARecv Windows Sockets Operating Systems: UNIX, LINUX, OS/2, Mac OS, VMS, MVS or Windows send() recv() recv() send() IP Address:123.45.6.7 Port: 1234 IP Address:123.45.6.8 Port: 567 Networks: Microsoft, Novell or Banyan
WinInet Functions • Fairly Complete Support for: • Internet APIs (InternetOpen) • Http APIs (HttpOpenRequest) • Ftp – (Palm-size PC only) • Both Unicode and Ansi functions support: • InternetOpenA • InternetOpenW • No support for: • Gopher…(GopherOpenFIle) • Auto dial (InternetAutoDial)
Internet Protocol Helper API • Mapping of IP Addresses to Adapters • AddIPAddress, DeleteIPAddress • GetIpAddrTable • Network Routing • CreateIpForwardEntry, GetBestRoute, SendARP • Statistics • GetIcmpStatistics, GetIpStatistics, GetTcpStatistics
Support for MSMQ • MSMQ • MSMQ Architecture • MSMQ API • MSMQ and DCOM • MSMQ Scenario • Setting Up MSMQ
MSMQ • Message-Oriented Middleware (“MOM”) • Supports Asynchronous Data Delivery • Options • Journaling • Guaranteed Delivery • Notification • Dead-Letter Queues • Time Limit on Message Lifetime
AnApp.exe Device.exe (System Driver Process) MsMqAdm.exe MSMQRT.DLL MSMQD.DLL MSMQRT.DLL MSMQ Architecture
MSMQ API Queue Functions Message Functions • MQCreateQueue • MQDeleteQueue • MQOpenQueue • MQCloseQueue • MQSendMessage • MQReceiveMessage
MSMQ and DCOM DCOM PROXY Client STUB Server Network MSMQ Queue Client Server
MSMQ Scenario Full-Time Networked Client Network Public Queue Client Server Mobile Client on the Road Private Queue Client Mobile Client on the Network Network Private Queue Public Queue Client Server
Setting Up MSMQ • MinComm Setup • Set “Include MSMQ Components” • MaxAll Setup • Define MAXALL_MSMQ = 1 • CE Foot Print: 250K
Support for SNMP • What is SNMP • SNMP Agents and Managers • Management Information Base (MIB) • Traffic – Messages and Traps • Setting Up SNMP
What is SNMP? • TCP/IP Standard Protocol • Extensible • Manage network operation & routing • Manage security • Reads statistics from network devices
Management Information Base (MIB) • MIB-II (snmp_mibii.dll) • Host Resources MIB (snmp_hostmib.dll) • Custom MIB
Traffic – Messages and Traps SNMP MANAGER Messages Trap SNMP AGENT SNMP AGENT SNMP AGENT
Setting up SNMP • Starting Point MINCOMM & MAXALL • Memory Foot print = 220K • Files • CESYSGEN.BAT • COMMON.BIB • Dependent Modules: • PPP (Point-to-Point Protocol) • WINSOCK (Windows sockets)
Review • Windows CE 3.0 Networking • Windows CE Web Clients • Windows CE Web Server • Configuring COM and DCOM • Networking API Support • Support for MSMQ • Support for SNMP