Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Ping and return value (Multiple instances...)
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014517
Message ID:
01014835
Views:
20
Hi Rahul,

You can create a queue table in which Main exe will put requests for pings. Than you can have multiple ping exe checking that table for unprocessed requests. If ping exe finds one, it'll try to lock the record to make sure that another process doesn't work on it already. If record lock is successful, it will start pinging. The result is than written in the record, record is marked as processed by ping exe and unlocked. The ping exe's could run on the same computer or even on the separate computer or computers.
The main exe will check the queue table for the records with completed pings but not processed by main exe yet and process them.

>
>I am supposed to prepare a functionality which will work as follows:
>1. The Main exe will call the ping exe / client and start pinging the passed IP address.
>2. The Ping exe / client will ping the passed IP and on failing to ping should pass a parameter back to the calling exe...so as to go on and complete the further required functionality
>
>Requirements:
>1. We need to Ping multiple IP at the same time, i.e muptiple instances of the Ping exe / client exe would be called
>2. The process cannot be MODAL
>
>We have a main.exe and a Pingx.exe
>Main exe calls multiple instances of pingx exe.
>I have finished task upto this level.
>
>Can the pingx exe return some parameter back to the calling main.exe....this is what I want to know and implement. If not, is there any other way to achieve this requirement?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform