01.12.2012 Views

Priority of Telnet server task

Priority of Telnet server task

Priority of Telnet server task

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Application also can read in variables from Web page<br />

• Step 1: Read in Web page data<br />

− httpd_read(session, buffer, (int)((len > size<strong>of</strong>(buffer)) ?<br />

size<strong>of</strong>(buffer) : len))<br />

− This call loads entire Web page including input data from user into a<br />

single buffer<br />

• Step 2: Parse data<br />

− httpd_get_varval(session, buffer, "hvac", hvac, size<strong>of</strong>(hvac))<br />

− This function will parse Web page that was loaded into buffer during<br />

httpd_read() call, looking for a form entry with name “hvac.” The<br />

value is then copied into a local string also named hvac.<br />

TM<br />

49<br />

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,<br />

mobileGT, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks <strong>of</strong> Freescale Semiconductor, Inc.,<br />

Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine,<br />

Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, TurboLink, Vybrid and Xtrinsic are trademarks <strong>of</strong> Freescale Semiconductor, Inc. All<br />

other product or service names are the property <strong>of</strong> their respective owners. © 2012 Freescale Semiconductor, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!