wap_addr.h
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:1k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- /*
- * wap_addr.h - interface to WAPAddr and WAPAddrTuple types.
- */
- #ifndef WAP_ADDR_H
- #define WAP_ADDR_H
- #include "gwlib/gwlib.h"
- typedef struct {
- Octstr *address;
- long port;
- } WAPAddr;
- typedef struct {
- WAPAddr *remote, *local;
- } WAPAddrTuple;
- WAPAddr *wap_addr_create(Octstr *address, long port);
- void wap_addr_destroy(WAPAddr *addr);
- int wap_addr_same(WAPAddr *a, WAPAddr *b);
- WAPAddrTuple *wap_addr_tuple_create(Octstr *rmt_addr, long rmt_port,
- Octstr *lcl_addr, long lcl_port);
- void wap_addr_tuple_destroy(WAPAddrTuple *tuple);
- int wap_addr_tuple_same(WAPAddrTuple *a, WAPAddrTuple *b);
- WAPAddrTuple *wap_addr_tuple_duplicate(WAPAddrTuple *tuple);
- void wap_addr_tuple_dump(WAPAddrTuple *tuple);
- #endif