wetware / pkg

Peer-to-peer cloud environment
https://wetware.run
Other
38 stars 7 forks source link

Add "system socket" API #154

Closed lthibault closed 1 year ago

lthibault commented 1 year ago

Stacked on #153.

This PR introduces the "system socket". Both system/ and guest/system export dialer types. These types return an *rpc.Conn to the remote side of the host/guest boundary. For example: calling guest/system.FDSockDialer from the guest will return a connection to the host.

I think I want to start exploring alternatives to TCP sockets, so once this gets merged in, I think things will generally be more stable on your end.