On Thu, Oct 22, 2009 at 5:18 AM, lostgallifreyan <lostgallifre...@gmail.com> wrote: > Ok, I tried this: > > function Main() > SKT=wx.wxSocketClient() > SKT:Connect(wx.wxIPV4address("192.168.1.2:4006"),true) > end > > It gives an 'invalid argument' error... I've seen a lot like this and I'm > tired of fumbling inanely in the dark! > > This NEEDS a working example. It doesn't matter if it's posted by someone who > hasn't worked extensively with sockets, you only have to have done it > successfully once!
Please search for m_clientSocket in this C++ sample. I think you need to call wxIPV4address::Hostname() and Service() separately. http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/sockets/baseclient.cpp?view=markup Hope this helps, John ------------------------------------------------------------------------------ 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