Re: [RFC PATCH 0/6] qapi: net: add unix socket type support to netdev backend

2022-05-10 Thread Ralph Schmieder
the remote address -- > > that's a bit redundant. > > > > > - Have completely separate backends, ie '-netdev stream' for > > >client/server TCP/UNIX sockets, and '-netdev dgram' for UDP > > >sockets, removing 'mode' field. > > > > ...this won't work, though, because UNIX domain sockets can be > > stream-oriented or datagram-oriented. > > Sure it can work, both the 'stream' and 'dgram' backends would > allow the full range of addr types as they're independant config > dimensions > > > -netdev > stream,server=no,addr.type=inet,addr.host=localhost,addr.port=1234 > -netdev stream,server=no,addr.type=unix,addr.path=/some/stream/sock > > > -netdev dgram,id=ndev0,\ > local.type=inet,local.host=localhost,local.port=1234,\ > remote.type=inet,remote.host=localhost,remote.port=1235 > -netdev dgram,id=ndev0,\ > local.type=unix,local.path=/some/dgram/sock0, > remote.type=unix,remote.path=/some/dgram/sock1 > > > With regards, > Daniel > -- > |: https://berrange.com -o- > https://www.flickr.com/photos/dberrange :| > |: https://libvirt.org -o- > https://fstop138.berrange.com :| > |: https://entangle-photo.org-o- > https://www.instagram.com/dberrange :| > > -- Ralph Schmieder Holtzstr. 2 76135 Karlsruhe Germany ralph.schmie...@gmail.com

Re: socket.c added support for unix domain socket datagram transport

2021-04-26 Thread Ralph Schmieder
> On Apr 23, 2021, at 18:54, Stefano Brivio wrote: > > On Fri, 23 Apr 2021 17:21:38 +0100 > Daniel P. Berrangé wrote: > >> On Fri, Apr 23, 2021 at 05:29:40PM +0200, Stefano Brivio wrote: >>> Hi Ralph, >>> >>> On Fri, 23 Apr 2021 08:56:48

Re: socket.c added support for unix domain socket datagram transport

2021-04-26 Thread Ralph Schmieder
> On Apr 23, 2021, at 18:39, Stefano Brivio wrote: > > On Fri, 23 Apr 2021 17:48:08 +0200 > Ralph Schmieder wrote: > >> Hi, Stefano... Thanks for the detailed response... inline >> Thanks, >> -ralph >> >> >>> On Apr 23, 2021,

Re: socket.c added support for unix domain socket datagram transport

2021-04-23 Thread Ralph Schmieder
Hi, Stefano... Thanks for the detailed response... inline Thanks, -ralph > On Apr 23, 2021, at 17:29, Stefano Brivio wrote: > > Hi Ralph, > > On Fri, 23 Apr 2021 08:56:48 +0200 > Ralph Schmieder wrote: > >> Hey... new to this list. I was looking for a way to us

Re: socket.c added support for unix domain socket datagram transport

2021-04-23 Thread Ralph Schmieder
> On Apr 23, 2021, at 11:16, Daniel P. Berrangé wrote: > > On Fri, Apr 23, 2021 at 08:56:48AM +0200, Ralph Schmieder wrote: >> Hey... new to this list. I was looking for a way to use Unix domain >> sockets as a network transport between local VMs. >> >>

socket.c added support for unix domain socket datagram transport

2021-04-22 Thread Ralph Schmieder
Hey... new to this list. I was looking for a way to use Unix domain sockets as a network transport between local VMs. I'm part of a team where we run dozens if not hundreds of VMs on a single compute instance which are highly interconnected. In the current implementation, I use UDP sockets (e