You Are Here:

Community: Developer Discussion Boards

#1 Old receive data - 2009-01-22, 22:10

Join Date: Nov 2008
Posts: 139
widetech1
Offline
Regular Contributor
hi,

Why wait in a thread, to receive data from a server using the method recv() socket?

thanks
Reply With Quote

#2 Old Re: receive data - 2009-01-23, 13:37

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by widetech1 View Post
Why wait in a thread, to receive data from a server using the method recv() socket?
...because you can do something else, while waiting for the data?

Cheers,

--jouni
Reply With Quote

#3 Old Re: receive data - 2009-01-23, 13:50

Join Date: Jul 2008
Posts: 41
igordsm
Offline
Registered User
Because the recv() method is blocking, wich means that the program will stop until it receives data, freezing the application for some moments.
If you wait for data in a thread you can do some kind of timeout, show an animation during the wait or simply let the user cancel the operation.


http://igordsm.googlepages.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot to receive data from server... ramis55 Symbian Networking & Messaging 0 2005-05-09 14:46
Http send and receive data white_dragon General Symbian C++ 1 2005-02-02 11:01
call recv(),but receive no data, help me ld_road Mobile Java Networking & Messaging & Security 0 2004-11-20 14:38
Http send and receive data white_dragon Symbian Networking & Messaging 2 2004-11-17 07:53
Problem: Connect from 7650 to another Device and Receive Data matsguenther Bluetooth Technology 0 2002-11-11 15:48

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia