![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello all,
I'm trying to use the Network.dll to connect the PDA with a PC in the company network. I need to read/write to a SqLite db in a shared forlder on the PC acting as a server. The PC as been defined as accepting incoming connection from inside a VPN (but I'm not sure if this is the right configuration: this is the only way I've found to acces the PC using the File Explorer). Using the Client.GetIP("MA-MASTER-XX") (where MA-MASTER-XX is the PC name) I get the right IP address (192.168.157.57). Now the question are: 1) how to check if the Wi-Fi is enabled? 2) How to check if the connection is established? Is someone here that could please give me any input? Many thanks Mimmo |
|
||||
|
the easyest way would be to check the pc folder for a known file...if the file was not found, then the conection was not successfull...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
If Client.GetIP returns the server IP then Wi-Fi is enabled and the network is detected.
Other options to download the file: - If your server supports FTP or HTTP downloads you could use those. - Create a small application on the server that waits for the device connection and then sends the file. See the Chit-Chat and FileTransfer examples: http://www.basic4ppc.com/Downloads.html |
|
|||
|
Thanks you Paulo & Erel!
your solution, Erel, is what I was thinking about... just a kind of "service" running on the server and waiting for incoming connection. What do you think about using the Hardware.dll events - evNetConnected - evNetDisconnected for testing the wi-fi on/off without running an external application with RunAppAtEvent? Could you please suggest any guideline? Many thanks Mimmo |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FTP with Network | Byak@ | Questions & Help Needed | 7 | 09-03-2008 12:06 PM |
| How to test if network is available? | obrienj | Questions & Help Needed | 4 | 07-13-2008 05:53 PM |
| Complex Network Library Example | aerohost | Questions & Help Needed | 5 | 06-29-2008 01:25 PM |
| Network | Heinz | Questions & Help Needed | 1 | 02-24-2008 11:30 AM |
| network and WEB??? | Brian | Questions & Help Needed | 0 | 05-05-2007 08:22 AM |