求一个ISOCKET应用的例子

tx040316 2009-05-21 09:40:34
最近不弟在搞BREW的网络部分,因为没用过,所以想请每位发一个DEMO给我看看,研究研究,谢谢 。
...全文
517 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
tx040316 2009-05-26
  • 打赏
  • 举报
回复
谢谢。
wskyo 2009-05-23
  • 打赏
  • 举报
回复
占位,以后学习
  • 打赏
  • 举报
回复
读代码要仔细呀
  • 打赏
  • 举报
回复
struct _CNetDiagnosticsApp
{
AEEApplet a; // Mandatory AEEApplet data member appears first
IFileMgr * m_pFileMgr; // Pointer to the apps IFileMgr object
AEERect m_rc; // Device Screen Rect
IHtmlViewer * m_pHTMLViewer; // The HTMLViewer control used to display HTML text
INetMgr * m_pINetMgr; // Pointer to INetMgr
IStatic * m_pIStatic; // Used for displaying messages
char * m_ppszHistory[MAX_HIST]; // history list
int m_cntHistory; // number of entries currently in the history list
PFNCLEANUP m_pfnViewCleanup; // function to clean up after test (NULL => no test)

// Form data

char * m_pszFormData; // this points to the memory block holding all values
char * m_pszHost; // "HOST" field
char * m_pszURL; // "URL" field
char * m_pszMsg; // "MSG" field
flg m_bRS:1; // "RS" field: Display response if TRUE
flg m_bRT:1; // "RT" field: Display response time if TRUE
flg m_bTCP:1; // "PROTOCOL" field == "1": Use TCP as protocol if TRUE
uint16 m_nDataLength; // length of pszMsg (calculated when set)

// Echoer state

uint16 m_nTCPIdx; // Index used for sending TCP data
uint32 m_nTotalTime; // Total Time
uint32 m_nSendTime; // Time to Send Data
uint32 m_nReceiveTime; // Time to Receive Data
AEEDNSResult m_dnsr; // DNS Result
AEECallback m_cb; // Callback for DNS
ISocket * m_pISocket; // Pointer to socket

// HTTP test state

IWeb * m_pIWeb; // Pointer to IWeb for HTTP Tests
WebAction m_awa[1]; // array of WebActions. By changing the '1' to any
// number, you can attempt to kick off multiple Web
// transactions simultaneously, testing Keep-Alive,
// multiple-POST Keep-Alives, NOWAITCONN, FORCENEW,
// and request queueing.
};

其中 m_pISocket相关的就是利用Echo server的TCP/UDP通信呀
tx040316 2009-05-22
  • 打赏
  • 举报
回复
不一样的,SOCKET和HTTP用的网络不一样啊。
发现心流 2009-05-22
  • 打赏
  • 举报
回复
一样吧?
  • 打赏
  • 举报
回复
SDK 中的netdiagnostic例子可以参考一下呀
tx040316 2009-05-21
  • 打赏
  • 举报
回复
那个是HTTP的啊

955

社区成员

发帖
与我相关
我的任务
社区描述
为开发者提供高通丰富的解决方案及全面技术下载内容。本版以AI人工智能、WoS移动笔记本、XR、IoT 物联网、Auto 汽车、生成式AI等核心板块组成,为开发者提供一个便捷及高效的学习交流平台。
人工智能物联网机器学习 企业社区 北京·东城区
社区管理员
  • Qualcomm开发
  • csdnsqst0050
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧