From: John L. <jla...@gm...> - 2009-10-23 02:32:30
|
On Thu, Oct 22, 2009 at 5:18 AM, lostgallifreyan <los...@gm...> 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 |