Pocket PC 2002 Ping

  • Thread starter Thread starter rbolos
  • Start date Start date
R

rbolos

Hello,

I use vb.net and I´m searching code for make a Ping from pocket pc 2002.

I find some code about it but it´s for pocket pc 2003. Moreover i can see
some code for use icmp but i can´t do it to run correctly.

Someone can help me?

Thanks.
 
The code you found was probably mine.
PPC 2002 does not have ip helper library, so the ping implementation will
have to be done by hand. It is not a trivial task. Look for ping source for
the desktop and try to adapt it.
 
Hello Alex,

Yes, the code is your. I find it on OpenNetCF forums.

You comment me that I must to be done by hand. Then i must get desktop ping
code and try to adapt it. It´s the only solution? I´ve find some codes, but
i can´t do it.

Can you send me some reference.

Thanks.
 
Back up! *Why* are you doing this? What are you trying to accomplish?
Surely you aren't planning to sell PING as a product. Why do you think you
need to do it?

Paul T.
 
So that what can be done? Are you writing a management console that will
display all of the active IPs around your device?

Paul T.
 
No. I´m comunicate through UPD socket with a host. But before connect it I
need to check if the ip exists.

Can you help me?
 
We've been over this before. UDP sockets *do not connect*. They have no
sense of being connected or not. You send packets, maybe you receive
packets, but there is *no* connection involved. There is no better way to
continue in your case then to simply do the right operations with the UDP
socket and, if the other device doesn't respond before a time-out, decide
that it's not there. Rebuilding PING from first principles isn't going to
help at all.

Paul T.

rbolos said:
No. I´m comunicate through UPD socket with a host. But before connect it I
need to check if the ip exists.

Can you help me?

Paul G. Tobey said:
So that what can be done? Are you writing a management console that will
display all of the active IPs around your device?

Paul T.

rbolos said:
Hello Paul,

I only want to check if existing a host by ip.

Thanks

"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
escribió en el mensaje Back up! *Why* are you doing this? What are you trying to
accomplish?
Surely you aren't planning to sell PING as a product. Why do you
think
you
need to do it?

Paul T.

Hello Alex,

Yes, the code is your. I find it on OpenNetCF forums.

You comment me that I must to be done by hand. Then i must get desktop
ping
code and try to adapt it. It´s the only solution? I´ve find some codes,
but
i can´t do it.

Can you send me some reference.

Thanks.

"Alex Feinman [MVP]" <[email protected]> escribió en el
mensaje
The code you found was probably mine.
PPC 2002 does not have ip helper library, so the ping
implementation
will
have to be done by hand. It is not a trivial task. Look for ping
source
for
the desktop and try to adapt it.

--
Alex Feinman
---
Visit http://www.opennetcf.org
Hello,

I use vb.net and I´m searching code for make a Ping from pocket
pc
2002.

I find some code about it but it´s for pocket pc 2003. Moreover i
can
see
some code for use icmp but i can´t do it to run correctly.

Someone can help me?

Thanks.
 
Well, I understand you but the UDP isn´t important now.

I only need to check the if exists a IP in a local lan. It would be through
TCP. Therefore i thought to check with a ping. If i can do it by others
methods, perfect.

Raul.

Paul G. Tobey said:
We've been over this before. UDP sockets *do not connect*. They have no
sense of being connected or not. You send packets, maybe you receive
packets, but there is *no* connection involved. There is no better way to
continue in your case then to simply do the right operations with the UDP
socket and, if the other device doesn't respond before a time-out, decide
that it's not there. Rebuilding PING from first principles isn't going to
help at all.

Paul T.

rbolos said:
No. I´m comunicate through UPD socket with a host. But before connect it I
need to check if the ip exists.

Can you help me?

Paul G. Tobey said:
So that what can be done? Are you writing a management console that will
display all of the active IPs around your device?

Paul T.

Hello Paul,

I only want to check if existing a host by ip.

Thanks

"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
escribió en el mensaje Back up! *Why* are you doing this? What are you trying to
accomplish?
Surely you aren't planning to sell PING as a product. Why do you
think
you
need to do it?

Paul T.

Hello Alex,

Yes, the code is your. I find it on OpenNetCF forums.

You comment me that I must to be done by hand. Then i must get desktop
ping
code and try to adapt it. It´s the only solution? I´ve find some codes,
but
i can´t do it.

Can you send me some reference.

Thanks.

"Alex Feinman [MVP]" <[email protected]> escribió en el
mensaje
The code you found was probably mine.
PPC 2002 does not have ip helper library, so the ping
implementation
will
have to be done by hand. It is not a trivial task. Look for ping
source
for
the desktop and try to adapt it.

--
Alex Feinman
---
Visit http://www.opennetcf.org
Hello,

I use vb.net and I´m searching code for make a Ping from pocket
pc
2002.

I find some code about it but it´s for pocket pc 2003. Moreover i
can
see
some code for use icmp but i can´t do it to run correctly.

Someone can help me?

Thanks.
 
Why? Again, you can say, "hey, I need to do this", but I think that you're
wrong, if you're using UDP.

If you're saying that you plan to connect to a device with TCP and you want
to verify at least that it's there before you try, because you can't live
with a TCP time-out, then you've received reasonable advice earlier in this
thread: find a desktop implementation and port it. You can do that by
finding a desktop implementation in managed code and simply add it to your
project, or you might find that the implementation you find is in native
code, and it would be easier to build it into a DLL and call it from your
managed code.

Paul T.

rbolos said:
Well, I understand you but the UDP isn´t important now.

I only need to check the if exists a IP in a local lan. It would be
through
TCP. Therefore i thought to check with a ping. If i can do it by others
methods, perfect.

Raul.

Paul G. Tobey said:
We've been over this before. UDP sockets *do not connect*. They have no
sense of being connected or not. You send packets, maybe you receive
packets, but there is *no* connection involved. There is no better way
to
continue in your case then to simply do the right operations with the UDP
socket and, if the other device doesn't respond before a time-out, decide
that it's not there. Rebuilding PING from first principles isn't going
to
help at all.

Paul T.

rbolos said:
No. I´m comunicate through UPD socket with a host. But before connect
it I
need to check if the ip exists.

Can you help me?

"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
escribió en el mensaje So that what can be done? Are you writing a management console that will
display all of the active IPs around your device?

Paul T.

Hello Paul,

I only want to check if existing a host by ip.

Thanks

"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
com>
escribió en el mensaje Back up! *Why* are you doing this? What are you trying to
accomplish?
Surely you aren't planning to sell PING as a product. Why do you
think
you
need to do it?

Paul T.

Hello Alex,

Yes, the code is your. I find it on OpenNetCF forums.

You comment me that I must to be done by hand. Then i must get
desktop
ping
code and try to adapt it. It´s the only solution? I´ve find some
codes,
but
i can´t do it.

Can you send me some reference.

Thanks.

"Alex Feinman [MVP]" <[email protected]> escribió en el
mensaje
The code you found was probably mine.
PPC 2002 does not have ip helper library, so the ping
implementation
will
have to be done by hand. It is not a trivial task. Look for ping
source
for
the desktop and try to adapt it.

--
Alex Feinman
---
Visit http://www.opennetcf.org
Hello,

I use vb.net and I´m searching code for make a Ping from
pocket
pc
2002.

I find some code about it but it´s for pocket pc 2003.
Moreover i
can
see
some code for use icmp but i can´t do it to run correctly.

Someone can help me?

Thanks.
 
Back
Top