Search found 3 matches

by gregfjohnson
Mon May 01, 2017 6:03 am
Forum: General Development
Topic: how to make a wxMessageDialog() go away programmatically??
Replies: 1
Views: 598

how to make a wxMessageDialog() go away programmatically??

I am using wxWidgets to create a front-end GUI that interacts via wxSockets with a remote TCP server. I create a wxMessageDialog(), and do a ShowModal() on that object to display it. So far, so good. As expected, it appears to be running the event loop inside the Modal dialog, and not the main wxWid...
by gregfjohnson
Mon May 01, 2017 5:50 am
Forum: General Development
Topic: What are the extra bytes in TCP socket messages?
Replies: 2
Views: 656

Re: What are the extra bytes in TCP socket messages?

I realized the problem. I was mistakenly using the method wxSocketBase::WriteMsg(). As the documentation notes: "WriteMsg() sends a short header before the data so that ReadMsg() knows how much data should be actually read." This "short header before the data" is what I was seeing when I sent a TCP ...
by gregfjohnson
Tue Apr 11, 2017 6:39 am
Forum: General Development
Topic: What are the extra bytes in TCP socket messages?
Replies: 2
Views: 656

What are the extra bytes in TCP socket messages?

I would like to use wx sockets to interface to another external TCP server. I am using the wxLua wrapper for wxWidgets. I used the simple client.wx.lua program, and set up a separate server that prints packets from clients. When I send "XXXXYYYYZZZZ" from the wxWidgets client program, I get the foll...