On Fri, Dec 07, 2001 at 09:01:19 -0500, Paul Davis wrote: > Anyway, my best guess so far has been this: > > lcp_open (const char *name); > > if (strchr (name, '/')) { > ... unix domain socket like /tmp/lcp/<pid> > } else if (strchr (name, ':') { > ... inet domain socket like host.domain:port > } else { > ... malformed name ... > }
URL syntax seems cleaner: unix://tmp/tcp/<pid> and inet://host:port/ for eg. - Steve