Windows Vista Tips

Windows Vista Tips > Newsgroups > ActiveSync > connecting to an unreachable host through ActiveSync

Reply
Thread Tools Display Modes

connecting to an unreachable host through ActiveSync

 
 
Marcin Grzeskowiak
Guest
Posts: n/a

 
      05-26-2009
Hi,

In my application I have a separate thread where I wait for network
events (i.e. my implementation of WSAAsyncSelect). I noticed something
strange when I try to connect to unreachable host (e.g. when calling
WSAConnect for 10.1.2.3 address which is unreachable for me) on a
Windows Mobile 6.1 device.

With wifi connection I get WSAEWOULDBLOCK from WSAConnect and later I
get FD_CONNECT event with error 10051 (WSAENETUNREACH) which is what I
would expect.

Now with ActiveSync/USB connection after calling WSAConnect I get
FD_CONNECT with no error code. Then when I try to send data on the
socket it also succeeds and I get FD_WRITE event with no error code.
But after that I get FD_CLOSE event with error 10054 (WSAECONNRESET).
Also there is a difference between PPP and RNDIS. When Activesync is
configured to use PPP ("Advanced network functionality" option is
disabled) WSAConnect returns immediately with WSAEWOULDBLOCK. With
RNDIS WSAConnect blocks for ~20 seconds and returns WSAETIMEDOUT (but
I still get FD_CONNECT event with no error code).

I am interested if this is normal for ActiveSync or maybe ActiveSync
can be configured behave in similar way as wifi ?

Marcin
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveSync 4.5 Beta fails to communicate with bluetooth serial por Arun Gupta ActiveSync 1 12-20-2006 02:52 AM
Activesync 4.1 - WM 5.0 WORKING Paco Plus ActiveSync 6 05-12-2006 06:16 PM
Re: Cingular 8125/WM5.0/Win2000/AS 4.1 No Can Do... Raj Pillai ActiveSync 1 04-26-2006 01:33 PM
WM2005 + Activesync 4.1... connecting... no sync ActiveSync 2 02-16-2006 09:53 PM
Fixed - Exchange Server AS 4.1 Error 85010014 Ryan Hardin ActiveSync 3 02-09-2006 07:03 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59