This is a discussion on Win32 sockets in Windows mobile 5.0 within the Windows Mobile forums, part of the Mobile Software Development category; Hi all, i am using Win32 sockets in Windows mobile 5.0 smartphone. My data size is around 10k. I ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all, i am using Win32 sockets in Windows mobile 5.0 smartphone. My data size is around 10k. I perform following actions to download data from server : 1. Enable ConnectionManager when application starts. 2. Call WSAStartup() when application starts. 3. Call socket(). 4. Connect to server. 5. Send request. 6. Receive response. 7. Close socket. For the first time data downloaded properly. But if i try to download data again, socket() and connect() both gives exceptions. Can you pls suggest me what am i doing wrong? |
| Sponsored Links |
| |||
| I've never done this in WM but I have done some network programming in the past. Have you made sure that you are releasing all the socket resources on the client side? If your program opens the socket and then the program ends, the socket might still be open. You will need to make sure that you release all resources before your program terminates. If you have programmed the server, you will need to make sure that it is again reset to accept connections after you client has connected and disconnected. If you server gets a connection then your client terminates the sever will still think that the connection is open but just idle. You will need to wait for the connection to timeout or reset it somehow.
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Mobile - Interview FAQ | prasannavigneshr | Interview Questions & Answers and Tips | 15 | 01-24-2008 04:48 AM |
| Draw String in Windows Mobile 5.0 using VC++ Win32 . | krishnakumar | C and C++ Programming | 0 | 09-20-2007 02:03 AM |
| How to fix the appointments in windows mobile using C#? | mobilegeek | C# Programming | 3 | 08-20-2007 07:37 AM |
| How can communicate between child and parent windows in VC++ win32 application? | kingmaker | C and C++ Programming | 1 | 07-30-2007 12:51 AM |
| New T-Mobile phone runs Windows Mobile 6 | vadivelanvaidyanathan | The Lounge | 0 | 05-22-2007 08:19 AM |