On Tue, Oct 7, 2008 at 1:35 AM, Evan DeMond [EMAIL PROTECTED] wrote:
Hi all,
I'm writing a wxLua app which needs socket functionality, and I'm having
trouble figuring out how to handle events from wxSocketClient. wxSocketBase
doesn't inherit from wxEvtHandler, meaning Connect() isn't an
On Tue, Oct 7, 2008 at 10:50 AM, John Labenski [EMAIL PROTECTED] wrote:
wxSOCKET_INPUT is an enum wxSocketNotify, an integer with a value of
0, not an event type.
Aha - I think the docs were throwing me off the trail on that point, as
wxSOCKET_INPUT is listed in a table under wxSocket
...but didn't know what it meant. So the approach, then, is to do something
like this?
sock:SetEventHandler(someHandler, wxEVT_SOCKET)
someHandler:Connect(wxEVT_SOCKET, function (ev) if ev == wxSOCKET_INPUT
then ... end)
Oops, I meant if ev.GetSocketEvent() == wxSOCKET_INPUT, of course
Hi all,
I'm writing a wxLua app which needs socket functionality, and I'm having
trouble figuring out how to handle events from wxSocketClient. wxSocketBase
doesn't inherit from wxEvtHandler, meaning Connect() isn't an option. I went
looking and found this: