x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Start of Simple Browser using winsock 2 (working!)

Moderators: C:Amie

Jump to page : 1
Now viewing page 1 [15 messages per page]

stingraze Page Icon Posted 2017-08-05 10:49 AM
#
Avatar image of stingraze
Writing Team
H/PC Elder

Posts:
2,250
Location:
Japan
Status:
Hi guys, as all of you may know, there aren't many decent browsers that are out there for Windows CE.

I've started a simple browser project mostly making use of a sample I found on the internet plus gluing stackoverflow codes. (http://www.binarytides.com/winsock-socket-programming-tutorial/)
I now have a simple browser without the rendering / parser just to show that a little progress on my part has been done! (More like a stripped down version of lynx, even simpler, just displaying the source code lol)
It's nothing amazing, but it might be a little bit interesting for Windows CE fans out there...

I've attached the compiled exe file here.
I think I will release the source code to GitHub today or tomorrow.

Tested on my Sigmarion 3 right now using a CF Ethernet adapter.
It should work on Windows CE 4.1 or above.

How to use:

1. start up Command Prompt (cmd.exe) from Start -> Run...
2. change directory to where tinybrowser.exe is
3. type in tinybrowser.exe to start
4. type in url (withot http:// or https:// I made the port fixed to 80.
5. View the source code of the url .

I am planning to somehow study the source code of the first version of lynx or similar, and implement my version to this when I have time.

Enjoy!

Meanwhile, the source code / project file .zip is up on my server at: http://www.superai.online/windowsce/tinybrowser.zip

Edited by stingraze 2017-08-05 10:57 AM




Attachments
----------------
Attachments tinybrowser.exe (4KB - 1 downloads)
 Top of the page
stingraze Page Icon Posted 2017-08-05 11:58 AM
#
Avatar image of stingraze
Writing Team
H/PC Elder

Posts:
2,250
Location:
Japan
Status:
Here's a screenshot to see what tinybrowser.exe is like.





(tinybrowser.jpg)



Attachments
----------------
Attachments tinybrowser.jpg (24KB - 1 downloads)
 Top of the page
SwizzleDude
SwizzleDude Page Icon Posted 2017-08-05 5:45 PM
#
Status:
This is really neat. Now we need some sort of HTML render engine
 Top of the page
stingraze Page Icon Posted 2017-08-05 9:25 PM
#
Avatar image of stingraze
Writing Team
H/PC Elder

Posts:
2,250
Location:
Japan
Status:
thanks!

I just noticed after coding that I also need some sort of parser for the url that gets the domain name only to convert it to an IP address.
 Top of the page
stingraze Page Icon Posted 2017-08-05 11:25 PM
#
Avatar image of stingraze
Writing Team
H/PC Elder

Posts:
2,250
Location:
Japan
Status:
I've uploaded the source code to GitHub at this address: https://github.com/stingraze/tinybrowser



Just a friendly tip: If you are targeting Armv4,

ws2.lib (Winsocket 2 for Windows CE) is at C:\Program Files (x86)\Windows CE Tools\wce400\STANDARDSDK\Lib\Armv4
& winsock2.h is also needed and is available here: C:\Program Files (x86)\Windows CE Tools\wce400\STANDARDSDK\Include\Armv4

 Top of the page
C:Amie Page Icon Posted 2017-08-06 3:32 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
14,936
Location:
Fields End, UK
Status:
RAM and computational viability for JavaScript is going to be the problem. You could use WebKit to act as the rendering engine and come up with a 20-40MB browser executable capable of supporting modern standards. Like wkHtmltoPdf does, but you'll be doing a hell of a lot of paging to get it to do anything.
 Top of the page
stingraze Page Icon Posted 2017-08-06 10:38 PM
#
Avatar image of stingraze
Writing Team
H/PC Elder

Posts:
2,250
Location:
Japan
Status:
Thanks for the tip.

I am thinking more of really basic version of lynx to be made, at least for now.
WebKit will be too stressful for Windows CE like Sigmarion 3, I guess.

Edited by stingraze 2017-08-06 10:43 PM
 Top of the page
hpc:factor« View previous thread · Developers Arena · View next thread »

Jump to page : 1
Now viewing page 1 [15 messages per page]

Jump to forum:
Seconds to generate: 0.093 - Cached queries : 62 - Executed queries : 10
Server Time now is: Thursday, 19 September 2019 - 8:14