Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

function ping

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2009, 02:18 PM
Junior Member
 
Join Date: Nov 2008
Location: LT-40Km , Italia
Posts: 29
Smile function ping



Hi,
Is it possible to implement the ping?
I need to use this feature mandatory.
Thank you

Reply With Quote
  #2 (permalink)  
Old 01-30-2009, 04:20 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The full .Net Framework does have a Ping class which can be used with the Door library or a library. However the Compact Framework (device framework) doesn't support it.

Edit: Maybe it is possible to convert this project CodeProject: C# Ping Component. Free source code and programming help into a .Net CF project. I see that the Icmp protocol is supported by .Net CF.
Reply With Quote
  #3 (permalink)  
Old 02-02-2009, 07:51 AM
Junior Member
 
Join Date: Nov 2008
Location: LT-40Km , Italia
Posts: 29
Default

Hi, Erel

Help my,
I found pingclass.dll this work to win32 but not ppc.
I know only vb6.
can you help my
Tanks.
Reply With Quote
  #4 (permalink)  
Old 02-02-2009, 11:59 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Try this
Attached Files
File Type: zip Ping1.0.zip (6.2 KB, 43 views)
Reply With Quote
  #5 (permalink)  
Old 02-02-2009, 12:29 PM
Junior Member
 
Join Date: Nov 2008
Location: LT-40Km , Italia
Posts: 29
Default

Kind Regards,
Grazie.
Reply With Quote
  #6 (permalink)  
Old 02-02-2009, 12:46 PM
Junior Member
 
Join Date: Nov 2008
Location: LT-40Km , Italia
Posts: 29
Default

Hi, agraham
not work on PPC (wm6)


Error with exceptions2.dll
FullName:
System.Net.Sockets.SocketException

InnerFullName:
InnerMessage:
Stacktrace:in
System.Net.Sockets.Socket.SetSocketOption
Attached Images
File Type: jpg errore ping wm6.jpg (18.9 KB, 15 views)

Last edited by alessandro : 02-02-2009 at 01:10 PM.
Reply With Quote
  #7 (permalink)  
Old 02-02-2009, 02:24 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Well that was a frustrating hour or so I wanted to use a receive timeout that is listed as being available for both the Compact and full Frameworks and I couldn't understand why it wouldn't work Eventually by Googling I found the most stupid comment that I have seen (so far!) from a Microsofty who worked on the socket code

"The Compact Framework supports it but the underlying OS doesn't and throws an error- I hope that makes it clear"

Try this next attempt, seems to work OK on my WM6.1 iPAQ 214.
Attached Files
File Type: zip Ping1.1.zip (6.3 KB, 183 views)
Reply With Quote
  #8 (permalink)  
Old 02-04-2009, 10:57 AM
Junior Member
 
Join Date: Nov 2008
Location: LT-40Km , Italia
Posts: 29
Default

Hi , agraham

It runs on acer n311 WM5 and hp ipaq 214 wm6 .
There is only one small problem::
1 Ping ipaddress 192.168.1.4 ping running time "20 seconds" ,( msg ping Reply from192.168.1.4 in 21 ms.)
2 Ping ipaddress 192.168.1.4 ping running time "20 seconds" ,( msg ping Reply from192.168.1.4 in 7 ms.)
3 Ping ipaddress 192.168.1.4 ping running time "20 seconds" ,( msg ping Reply from192.168.1.4 in 15 ms.)
......

1 Ping hostname pc01ping running time "20 seconds" ,( msg ping Reply from192.168.1.4 in 21 ms.)
2 Ping hostname pc01 ping running time "0.1 seconds" ,( msg ping Reply from192.168.1.4 in 7 ms.)
3 Ping hostname pc01 ping running time "0.1 seconds" ,( msg ping Reply from192.168.1.4 in 15 ms.)

Regards
Reply With Quote
  #9 (permalink)  
Old 02-04-2009, 03:16 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by alessandro View Post
It runs on acer n311 WM5 and hp ipaq 214 wm6 .
There is only one small problem::
1 Ping ipaddress 192.168.1.4 ping running time "20 seconds" ,( msg ping Reply from192.168.1.4 in 21 ms.)
I don't understand the problem. What is "running time", that doesn't come from the library. It works fine on my iPAQ 214 and my HTC Diamond.
Reply With Quote
  #10 (permalink)  
Old 01-16-2011, 08:34 PM
konisek's Avatar
Knows the basics
 
Join Date: Jan 2009
Posts: 55
Default

Any idea how to implement tracert function in PPC?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ping server alessandro Italian Forum 1 02-03-2009 02:57 PM
DateDiff function digitaldon37 Questions (Windows Mobile) 2 12-10-2008 12:58 PM
Function Key eillezcas Questions (Windows Mobile) 0 08-27-2008 08:28 PM
Exp() function Bruno Questions (Windows Mobile) 5 06-05-2008 07:03 PM
set focus function gjoisa Questions (Windows Mobile) 3 05-13-2008 04:53 PM


All times are GMT. The time now is 08:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0