站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Java Development on PDAs Building Applications for PocketPC and Palm

Java Development on PDAs Building Applications for PocketPC and Palm

[ directory ] Previous Section Next Section

Networking on Palm Devices

The CLDC defines a set of networking APIs called the Generic Connection Framework (GCF). This set of APIs defines the base networking APIs that a CLDC-based profile must support.

While the CLDC specification defines the networking APIs, the profile sitting on top of the CLDC defines the networking protocols available in a particular implementation. The MIDP, for example, uses the CLDC-defined Generic Connection Framework APIs and specifies that any implementation of MIDP must support the http protocol. The MIDP specification states in section 6.1 that "MIDP implementations must support for accessing HTTP 1.1 servers and services."

In this chapter, we will look at how we can connect to an HTTP server, explain how to use the APIs provided in the Generic Connection Framework, and give some working code examples.

    [ directory ] Previous Section Next Section