>> Anyway, it seems the best thing to ask for is something simple, a template I >> can adapt. The two main purposes I can immediately think of are a GET method >> to fetch a web page so I can filter it and save it to file, then use >> wx.execute() to ask a browser to display it. An ideal extension of this >> would be a local web proxy that the brower would reach on 127.0.0.1. This >> proxy would be entirely written in wxLua and intercept the external input >> fetched from a server, and filter it as I want, so the browser then shows it >> as I need. > >Try to look for wxSocket examples. wxLua wraps all of these classes >and they send wxEvents containing the network data. I have not used >them extensively. > >http://docs.wxwidgets.org/stable/wx_wxsocketclient.html#wxsocketclient >http://wiki.wxwidgets.org/WxSocket > >Regards, > John >
Thanks, those links show what looks like good starting points, and as the stuff is in wxLua it's worth me exploring this to use it. As to examples though, you do realise that this did occur to me, no? :) I searched for the string "socket" without case sensitivity, both on Google (in context of wxLua) and on the full set of wxLua samples. There is no example code anywhere that I know of. The only files that use that string are controls.wx.lua and editor.wx.lua and a quick look at those will show that the occurences have next to nothing to do with actual use of any sockets! Please can someone post a small template of actual wxLua code using sockets to connect to a web server for a simple HTML GET method? I'm not the first to ask a similar question, and I don't think the last person had an answer. This isn't some out-of-the-way function, I think this is something that really needs to be added to the main set of examples. If I work it out I'll write a small example but I don't know if anyone would trust my abilities enough to use it in the main set of examples, and I'm certainly not the right person to do this. It would far better be extracted from the core of an existing work by someone experienced in this. Any offers? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users