microwindows icon indicating copy to clipboard operation
microwindows copied to clipboard

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

Open Danoloan10 opened this issue 6 years ago • 2 comments

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).

Danoloan10 avatar Dec 20 '19 17:12 Danoloan10

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.

ghaerr avatar Dec 20 '19 22:12 ghaerr

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

Danoloan10 avatar Dec 21 '19 02:12 Danoloan10