From: John L. <jla...@gm...> - 2009-10-19 03:57:25
|
On Sat, Oct 17, 2009 at 6:42 AM, lostgallifreyan <los...@gm...> wrote: > I've Googled for examples of sockets used in wxLua, with very little result. I'm using W98, so I hope that isn't a problem as it doesn't do 'raw sockets' as I've seen them called, like WXP does. As wxLua is cross-platform, I'm guessing this isn't a problem for W98. Don't know about Win 98. > 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 |