ghaerr / microwindows

The Nano-X Window System
Other
659 stars 90 forks source link

Can Nano-X be used with a server-client distributed deployment? #35

Open Danoloan10 opened 4 years ago

Danoloan10 commented 4 years ago

Hi, I was wondering, can the Nano-X server and the client be in different hosts and communicate through the internet? If so, how? Upon reading the documentation, I have not seen any information related to this (may well be because I am a poor reader too).

ghaerr commented 4 years ago

The system could be setup to allow a client to connect to the server over a TCP/IP socket. It isn't coded for this now, but could be easily added by modifying the connect code in src/nanox/client.c to connect to a server IP address rather than the currently implemented UNIX socket. However, the client and server machines would need to have the same endianness, or all the packet writing code would also need HTONS() etc added as well.

Danoloan10 commented 4 years ago

thats awesome, thank you very much and for pointing out where to touch the code too :)