Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Communications Using TCP/IP: HTTP and Sockets

Chapter 8. Communications Using TCP/IP: HTTP and Sockets

Windows CE provides a rich variety of communications techniques for transferring data between a Windows CE device and desktop PCs or servers. Selecting the most appropriate communications technique is important. If you are developing a "companion" application (that is, an application that shares data with a desktop application, in the same way that Pocket Word and Word for Windows share data), you should use either ActiveSync (see Chapter 17), or perhaps RAPI (the Remote Application Programming Interface, see Chapter 10). If your application needs to communicate directly with another application running on a desktop PC or server, you should consider using TCP/IP (Transmission Control Protocol/Internet Protocol) sockets. Sockets can also be used for communicating with other compatible devices using infrared. Finally, if you need to transfer data to and from a server (for example, data from a server-based database), HTTP (HyperText Transfer Protocol) can be used. TCP/IP sockets and HTTP are the subject of this chapter.

TCP/IP is now the most widely used network protocol and is the only protocol supported as standard with Windows CE. TCP/IP communications techniques provide the widest possible connection options, including the following:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint