communicating from console app to wxWidgets app?
The Night Tripper
jkn at nicorp.co.uk
Sat Nov 17 01:52:07 PST 2007
Hi Riccardo
> it is quite easy to build a socket communication on linux, and it is not
> difficult to port it to mac and even windows.
Yes, I know. I was hoping not to use sockets for this particular
functionality and was hoping to use something a little more tightly coupled
>
> the only thing is that the wxwidget application must handle correctly
> the listen process : check incoming connexions within idle events and
> avoid multithreading if not necessary.
>
> but there is a point that might be difficult : on linux you need to be
> root to listen on a socket port... I don't know how to handle this.
>
Erm, are you sure? I have other (non-wx) apps listening just fine on a
socket without being root.
Leslie - It is the (non-wx) *console* app I want to control the *wxWidgets*
app. so command-line switches are irrelevant, I think. Thanks for the
pointer to wxProcess and wxExecute. It may be that I will have to turn my
console app into a wxWidgets console app and use these.
Any other ideas?
thanks a lot
J^n
More information about the wx-users
mailing list