Hello World :)
I'm unexpirienced in X11 programming and now I want to write some small application.
It should create 4 windows and each of them should be displayed on different X server.
1\ Can it be done using X?
2\ Which toolkits should I use...I'm thinking to use Motif...?
3\ Should it be one process displaying all 4 windows or different process for each using sys.calls
I guess that I'll have to use low level Xlib func. to get windows displayed on different machines...or...?
X windows in itself is capable of displaying at different machines. Try "xterm -display somemachine:0" where "somemachine" is not your own machine, and you'll see that it works.
As to the rest of your questions, I'll leave it to someone with more experience in X development.
I believe xlib locks onto a single server connection, so you cannot have a single program that displays windows on different servers (computers). Unless you write the networking code yourself.
However, you could launch multiple instances of your program, which all cooperate to form a single application.
I though so...thanks!
Originally Posted by CornedBee
I would use gtk rather than motif, but i guess that depends on where it's going...
We have some machines with Solaris, but I could get one with Linux just for that purpose.
Originally Posted by MK27
Application should be pretty simple, it would run 4 windows, one on local display and the rest on the remote Xservers(some old X-terminals);
These terminals would then be used as the interface for some operators to alarm some other people in remote office on some event....
Say, that person(operator) clicks the button in window displayed on that X-term and the window on that Xclient starts to blink with some warning message.
Sorry for my bad and confusing english.
GTK is available for most Unix platforms (and Winows too, I think).