Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

connecting to an unreachable host through ActiveSync

 
   Soft32 Home -> PDA -> Pocket PC Developer Networking RSS
Next:  New Device - No Sync  
Author Message
fnord.mg

External


Since: Apr 09, 2009
Posts: 1



(Msg. 1) Posted: Thu Apr 09, 2009 4:59 am
Post subject: connecting to an unreachable host through ActiveSync
Archived from groups: microsoft>public>pocketpc>developer>networking (more info?)

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
Back to top
Login to vote
Display posts from previous:   
Related Topics:
A socket was attempted to an unreachable host? - Hi, I have opened my middle tier application with VS2005,CF2.0 (which is developed with VS2003(CF1.1)). When I run on....

Connecting to SQL Server when host is unplugged - Hi I am trying to connect to a pc's sql server from a pocket pc (connected to the pc via a usb cable, using..

Probs Connecting to host PC share from emulator - Hi I'm attempting to develop a pocketPC application with VS.NET 2003. I'm using the 2003 emulator, and I've installed...

How to use Host Name instead of IP Address - Hello all, VS 2003 with .net framework 1.1 Trying to connect from the Pocket PC emulator to a web services. The..

[C#] Dns.Resolve & "no such host is known" - Hi, I'm wriing a small application for my Pocket PC for uploading files directly from the PPC to my FTP server. The..

No such host is known error message - Hi everyone, I have an application that sends data through a TCP/IP port. It works great with CE 4.1, 4.2, WM2005,..
       Soft32 Home -> PDA -> Pocket PC Developer Networking All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
  PDA


[ Contact us | Terms of Service/Privacy Policy ]