[Qt-interest] help for QT communication
陈凌云
lyun.chen at gmail.com
Tue Aug 18 14:03:31 CEST 2009
Thanks for your replying ASAP.
My dev environment is windows mobile 5.0 and QT’s version is 4.5.2.
“It can not connect to the target server” means that the dialing is
successful, but when I use the connect function to connect the target
server, the server has not received the connecting requesting.
The codes is available in my own test app, but after it has been merged into
QT’s UI, it looks like it can not work correctly.
Some of my connect code is like below:
* *if( j->connect( false ) )
* {*
* *ConnectionError* *ce* = *ConnNoError;
* *while( ce* == *ConnNoError* )*
* {*
* *ce* = *j->recv();
* }*
* *printf( "ce: %d\n", ce* );*
* }*
The connect function’s result is the listening server has refused this
connection requesting. But from server’s log, the listening server has not
got the request PS, the connection’s IP address and PORT is right.
2009/8/18 陈凌云 <lyun.chen at gmail.com>
> Hi, all
>
> I met one communication trouble after using QT tool. My mobile app works
> with winsock component for windows mobile system(ws2.dll/ws2.lib), I have
> not used the QT communication component.
>
> But while I merge my communication codes into QT architecture, the
> connection can’t be created.
>
> The result is, the connection is created successfully, but it can not
> connect the target server. PS: The server is reachable, it has been
> confirmed.
>
> My connecting component is based on Gloox’s open source codes, and UI is
> implemented with QT library.
>
> Does someone know the question and resolving method? Thanks a lot.
>
> --
> Lingyun Chen
> College of Info Science and Engineering
> Zhejiang University
> Hangzhou,Zhejiang
> P.R.China
>
--
Lingyun Chen
College of Info Science and Engineering
Zhejiang University
Hangzhou,Zhejiang
P.R.China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090818/b154f40a/attachment.html
More information about the Qt-interest-old
mailing list