home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / wapuniverse-src-0.3.5.build9.tar.gz / wapuniverse-src-0.3.5.build9.tar / wapuniverse-0.3.5.build9 / WAP.h < prev    next >
C/C++ Source or Header  |  2000-11-12  |  2KB  |  78 lines

  1. #ifndef _wap_h_
  2. #define _wap_h_
  3. //---------------------------------------------------------------------------
  4. // WAP.h
  5. // Contains all WAP specific stuff
  6. //
  7. // Project: WAPUniverse for PalmOS
  8. // Copyright ⌐ 1999-2000 Filip Onkelinx
  9. //
  10. // http://www.wapuniverse.com/
  11. // filip@onkelinx.com
  12. //
  13. // This program is free software; you can redistribute it and/or
  14. // modify it under the terms of the GNU General Public License
  15. // as published by the Free Software Foundation; either version 2
  16. // of the License, or (at your option) any later version.
  17. //
  18. // This program is distributed in the hope that it will be useful,
  19. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. // GNU General Public License for more details.
  22. //
  23. // You should have received a copy of the GNU General Public License
  24. // along with this program; if not, write to the Free Software 
  25. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  26. //
  27. //
  28. // $Workfile: WAP.h $  
  29. // $Author: wapuniverse $  
  30. // $Date: 2000/11/11 20:51:09 $     
  31. // $Revision: 1.10 $
  32. //
  33. // $Header: /cvsroot/wapuniverse/wapuniverse/src/WAP.h,v 1.10 2000/11/11 20:51:09 wapuniverse Exp $
  34. //
  35. //---------------------------------------------------------------------------
  36. #define WAP_WSP_CL 9200
  37. #define WAP_WSP_CO 9201
  38. #define WAP_WSP_CL_LOCAL 1234
  39. #define WAP_WSP_CO_LOCAL 1235
  40.  
  41.  
  42. //#define MAX_URL_LEN 128
  43.  
  44.  
  45. #ifdef __palmos__
  46. #include <PalmOS.h>
  47. #include "dbUrl.h"
  48. #include "dbConn.h"
  49. #include <sys_socket.h>
  50. #define Malloc       MemPtrNew
  51. #define Free(addr) MemPtrFree(addr)
  52. #else
  53. #include "malloc.h"
  54. #include "string.h"
  55. #include <sys/unistd.h>
  56. #include <sys/socket.h>
  57. #include <netdb.h>
  58. #include <netinet/in.h>
  59. #include <arpa/inet.h>
  60. #include <stdio.h>
  61. #define Malloc     malloc
  62. #define Free(addr) free(addr)
  63. #endif
  64.  
  65. // WSP
  66.  
  67. #define WSP_PDU_GET 0x40
  68. #define WSP_PDU_VERSION 0x1A
  69.  
  70.  
  71.  
  72. // function prototypes
  73. int wapGetUrl(dbConnConnection *conn, char *urlstr, Boolean remember, GlobalsType *g);
  74. // Boolean remember: true if we are loading a WML page (and not an image), sowe set gLastURL to current URL, needed for relative links later on
  75. int wapCreateUrlStr(char target[], char url[], GlobalsType *g);
  76.  
  77. #endif _wap_h_
  78.