Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

PocketPC Connection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Euphilos - 05 Jan 2006 13:12 GMT
Hello,

I've ran into the following problem - using a TcpClient from a craddled
PocketPC lets you connect to any address without throwing an exception, even
if the address does not exist. This happens only if the device is craddled
and synchronized with ActiveSync 4.

From a craddled PocketPC 2003 SE, CF 2.0, both real device and emulator, the
following code:

  Dim client As New TcpClient
  client.Connect("192.168.2.21", 9876)

works for any address without throwing an exception for wrong addresses.

Adding the lines (to verify if a connection has actually been created):

  Dim stream As Stream = client.GetStream()
  stream.WriteByte(0)
  stream.Flush()

solves the problem (meaning I get a transport exception), but only when
stepping through the code in the debugger. Running the code directly again
results in no exception.

Is there any way to check more thoroughly if the connection actually exists?

Thank you.
"Peter Huang" [MSFT] - 06 Jan 2006 02:05 GMT
Hi Euphilos,

This newsgroup is for desktop framework development issue.
As for compact framework issue, please post in the newsgroup below.
microsoft.public.dotnet.framework.compactframework
or
microsoft.public.pocketpc.developer

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.