MOTIF programming and X11 client !


 
Thread Tools Search this Thread
Top Forums Programming MOTIF programming and X11 client !
# 1  
Old 05-23-2017
Network MOTIF programming and X11 client !

Hi there ,

i am interesting in MOTIF programming.

One question :

Is it right that in Motif GUI programming the actions are automaticly transformed and networked to other clients over the internet without network programming necessary ?

Are the commands automatic transformed by the X11 system and protocoll ?

WBR Zabo
# 2  
Old 05-23-2017
Yes, X11 is fundamentally a network protocol, including any toolkits you would use with X11. When client and server are on the same machine, the client connects to X11 with a UNIX domain socket for performance reasons, but it's still a socket. The deep details of how the connection is made is something you don't need to concern yourself with.

Mostly.

Plain X11-over-TCP is considered a bit old-fashioned these days. Kind of like telnet, it's been cut off by default as it lacks security features and is difficult to control. People usually wrap X11 connections with VNC instead if they want to connect to an X11 terminal over the internet. This also gives a moderate improvement in efficiency.

This still isn't a change to how your program works as much as what it connects to. I think the VNC connection would have to be made first, elsewhere.
# 3  
Old 05-24-2017
Hi and thanks.

Does that mean that i can program a application in MOTIF under Linux and the application can send data to the same
application over the internet on a different computer ?
# 4  
Old 05-24-2017
I'm not entirely sure what you mean by that, but I don't think so. The socket connects application to video driver, not application to application. There's a little bit of IPC, like copy-paste between applications running inside the same X instance, but nothing that crosses server boundaries.
# 5  
Old 05-26-2017
Quote:
Originally Posted by Zabo
Does that mean that i can program a application in MOTIF under Linux and the application can send data to the same
application over the internet on a different computer ?
Two instances of one X-client running on two different computers, host1 and host2? The short answer is no. If both clients are running on the same server (i.e. the screen in front of you) there are probably tools to allow you to do this, but they are not built into Motif. You would have to investigate other tools/libraries.

If you were thinking of learning Motif programming to simplify inter-process communication, forget it. You are barking up the wrong tree. If, on the other hand, you want to learn GUI programming for Linux, don't bother. Motif is virtually dead with only legacy systems using it. Instead you should be looking at GTK and QT instead.

Andrew
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Motif gui programming !

MOTIF GUI PROGRAMMING ! Hi there. I am a MOTIF GUI Programmer in C language. After a longer break i have problems with the GCC compiling. my MOTIF file is named winstack.c I have the follow code gcc -o newprogram winstack.c -lXm -lXt -lX11 The compilation runs good. But no executable LINUX... (10 Replies)
Discussion started by: Sennenmut
10 Replies

2. Programming

Low level X11 programming

How to use X11 without Xlib not XCB? How draw window directly on low level? I must use anyway window manager like Motif? I have ridden that X11 has server-client architecture, client send via TCP/IP to port 6000 request for primitives and get replies. Where is detailed description of it? In X11... (0 Replies)
Discussion started by: AndrzejB
0 Replies

3. Programming

Client Server programming

Hi Could someone give me some advise, basically i am learning UDP client server programming. I understand how to do send and receive between client server ( learn from this site Sending and Receiving Packets) but things such as MSN can actually send and receive at the same time! I believe it... (1 Reply)
Discussion started by: GQiang
1 Replies

4. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

5. Solaris

Motif 2.1 migration from Motif 1.2

An application was getting built using Motif 1.2 that used come along Solaris 6 OS for compiling and linking. Application is run using Motif 2.1 on Solaris 10 and it is working fine. Application compilation and linking is working fine on Solaris 10 with Motif 2.1.0 but running the application... (0 Replies)
Discussion started by: shafi2all
0 Replies

6. UNIX for Dummies Questions & Answers

Newbie needs help with Xlib / X11 programming,dunno who to ask,but you :(

Hi,I'm new here and to Unix also. I'm totall newbie. Here is what I have to do: -Basics of programming user interface with Xlib library -Xlib -Client/Server model of X-Windows system -Example of "Hello world" with button which changes text ,so that when u click displays another... (4 Replies)
Discussion started by: megane16v
4 Replies

7. UNIX for Advanced & Expert Users

Server Programming to keep on looking for client connection

Hi I wrote a server Program in C, Here it is, this is a just socket creation alone, bool myclass::CreateSocket() { struct sockaddr_in sockaddr_in; sockaddr_in.sin_family = AF_INET; sockaddr_in.sin_port = 1100; sockaddr_in.sin_addr.s_addr = INADDR_ANY; ... (4 Replies)
Discussion started by: vij_krr
4 Replies

8. UNIX for Dummies Questions & Answers

socket programming : client server IPC

I'm new to socket programming. Have a basic doubt. I have a structure(global) at the server side. I have two different client connecting to the server. Will the changes made by one client on the structure be visible to the other client when it accesses the same client? I'm creating a STREAM... (3 Replies)
Discussion started by: abc.working
3 Replies

9. UNIX for Dummies Questions & Answers

Good source of X11 programming info?

Is there a good book or something on practical programming in X11? I have the O'Reilly X window system book set. They don't seem to cover the nuances very well (at least for me). So far the only thing I find on the web is the text from these books. Specifically, I'm looking for optimization... (2 Replies)
Discussion started by: willil
2 Replies
Login or Register to Ask a Question