Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Why does everybody use tcp ports instead of file sockets for local communication?

In my experience it's because Windows and mac developers aren't aware of local file sockets. Windows API, in particular, doesn't have a similar concept if I recall.



Windows has named pipes. MacOS has UDS and they're not terribly uncommon


Windows also supports UDS now.


I've never seen the UDS acronym to refer to UNIX sockets.

Just call them UNIX sockets.


They're called UNIX domain sockets.

Just call them UDS.


On the most popular UNIX-like operating system, Linux, there's are literally zero references to UDS to mean UNIX domain sockets.

  $ sudo mandb
  $ man -K UDS
The point is that acronyms that are not context appropriate and/or very uncommon are quite annoying to come across. I guess it was worth saving a dozen bytes not to write the full thing in the first place.


Windows 10 has support for UNIX sockets.


Wow, interesting - I didn't know that. That is very cool... no more special handling for windows in cross platform handling then it sounds like (at least for UDS).


Windows added UNIX domain sockets in recent years. They work everywhere now.


Depending on what you need to do. Last I looked things like SCM_RIGHTS.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: