Page 211 - PDA Robotics Using Your Personal Digital Assistant to Control Your Robot
P. 211

PDA 09  5/27/03  8:50 AM  Page 187
                                            Chapter 9 / PDA Robot Software for Pocket PC 2002
                                                                                    Figure 9.6
                                                                                    Wireless card.















                                 PDASocket.hpp

                                 //
                                 // The class definition
                                 //

                                 class CPDASocket : public CCeSocket
                                 {
                                   DECLARE_DYNAMIC(CPDASocket);
                                 public:
                                   //
                                   // Constructor
                                   //
                                   CPDASocket(PURPOSE_E iPurpose=FOR_DATA);

                                 protected:

                                   //
                                   // Called when data arrives over the wireless link
                                   //
                                   virtual void OnReceive(int nErrorCode);
                                 };
                                 PDASocket.cpp

                                 //
                                 // CPDASocket Derived from CceSocket Implementation
                                 //
                                 #include "stdafx.h"
                                 #ifdef _DEBUG

                                                                                               187
   206   207   208   209   210   211   212   213   214   215   216