Dear all,
I want to port a perl script(written by me) to C or C++ for embedded device like ADSL router, IP Camera...etc. What the script does is login a server and update the IP address of a DNS record. I do not know C or C++, so which one should I learn to do the job? Is C more popular for embedded device?
The perl scipt can be downloaded here:
3update v0.8
And a commnication example:
2006-03-18 16:55:24] *** 3update 0.8 Started ***
[2006-03-18 16:55:24]
[2006-03-18 16:55:24] Connecting to myip server...
[2006-03-18 16:55:24] myip_server --> 61.15.77.54
[2006-03-18 16:55:24] Connecting to the 3domain Update Server...
[2006-03-18 16:55:24] update_server --> miniDNS.net Update Server 0.8.1 (Build 25)
[2006-03-18 16:55:24] update_server <-- agent 3update/0.8
[2006-03-18 16:55:24] update_server --> OK Agent accepted
[2006-03-18 16:55:24] update_server <-- version
[2006-03-18 16:55:24] update_server --> OK 0.8.1
[2006-03-18 16:55:24] update_server <-- login user1 digest-md5
[2006-03-18 16:55:24] update_server --> CHALLENGE 138120fa8e935fc2aa0590465da036ce
[2006-03-18 16:55:24] update_server <-- response 8943ef751bc833ed764cbef6e45e134a
[2006-03-18 16:55:24] update_server --> OK Authenticated
[2006-03-18 16:55:24] update_server <-- a_update online homepc.3open.org 61.15.77.54
[2006-03-18 16:55:24] update_server --> OK HOMEPC.3OPEN.ORG mapped to 61.15.77.54
[2006-03-18 16:55:24] homepc.3open.org mapped to 61.15.77.54
[2006-03-18 16:55:24] update_server <-- exit
[2006-03-18 16:55:24] update_server --> OK Bye!
[2006-03-18 16:55:24] Disconnected from the 3domain Update Server.
Thanks in advance,
Michael Fung