Unix domain socket

Unix domain socket

A Unix domain socket (UDS) or IPC socket (inter-process communication socket) is a virtual socket, similar to an internet socket that is used in POSIX operating systems for inter-process communication. The correct standard POSIX term is POSIX Local IPC Sockets.

These connections appear as byte streams, much like network connections, but all data remains within the local computer. UNIX domain sockets use the file system as their address name space, i.e. they are viewed by processes as files in a file system. This allows two distinct processes to reference and open the same socket in order to communicate. However, the actual communication (the data exchange) does not use the file system, but buffers in kernel memory.

In addition to sending data, processes can send file descriptors across a Unix domain socket connection using the sendmsg() and recvmsg() system calls.

External links

*
*
* [http://untroubled.org/ucspi-unix/ ucspi-unix] , UNIX-domain socket client-server command-line tools
* [http://beej.us/guide/bgipc/output/html/multipage/unixsock.html unix domain sockets]
* [http://lists.freebsd.org/pipermail/freebsd-performance/2005-February/001143.html Unix sockets vs Internet sockets]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Unix domain socket — (Доменный сокет Unix) или IPC сокет (сокет межпроцессного взаимодействия) конечная точка обмена данными, схожая с Интернет сокетом, но не использующая сетевой протокол для взаимодействия (обмена данными). Он используется в операционных системах,… …   Википедия

  • Socket — can refer to:In mechanics: * Socket wrench, a type of wrench that uses separate, removable sockets to fit different sizes of nuts and bolts * Socket head screw, a screw (or bolt) with a cylindrical head containing a socket into which the… …   Wikipedia

  • Socket (Software) — Ein Socket (abgel. von engl. Sockel oder Steckverbindung, Steckdose) ist ein Software Modul, mit dessen Hilfe sich ein Computerprogramm mit einem Rechnernetz verbinden und mit anderen Computern Daten austauschen kann. Sockets werden auch… …   Deutsch Wikipedia

  • Unix file types — For normal files in the file system, Unix does not impose or provide any internal file structure. This implies that from the point of view of the operating system, there is only one file type. The structure and interpretation thereof is entirely… …   Wikipedia

  • Socket de Internet — Socket designa un concepto abstracto por el cual dos programas (posiblemente situados en computadoras distintas) pueden intercambiar cualquier flujo de datos, generalmente de manera fiable y ordenada. El término socket es también usado como el… …   Wikipedia Español

  • Internet socket — In computer networking, an Internet socket or network socket is an endpoint of a bidirectional inter process communication flow across an Internet Protocol based computer network, such as the Internet. The term Internet sockets is also used as a… …   Wikipedia

  • POSIX local inter-process communication socket — POSIX local inter process communication sockets (auch Unix Domain Socket oder IPC Socket) sind Endpunkte von bidirektionalen Kommunikationsverbindungen bei der lokalen Interprozesskommunikation (IPC) unter Unix Betriebssystemen. Die Kommunikation …   Deutsch Wikipedia

  • Сигналы (UNIX) — У этого термина существуют и другие значения, см. Сигнал (значения). Сигналы в UNIX, Unix подобных и других POSIX совместимых операционных системах являются одним из способов взаимодействия между процессами (англ. IPC, inter process… …   Википедия

  • Berkeley sockets — The Berkeley sockets application programming interface (API) comprises a library for developing applications in the C programming language that perform inter process communication, most commonly across a computer network.Berkeley sockets (also… …   Wikipedia

  • Сокеты Беркли — Сокеты Беркли  интерфейс программирования приложений (API), представляющий собой библиотеку для разработки приложений на языке Си с поддержкой межпроцессного взаимодействия (IPC), часто применяемый в компьютерных сетях. Сокеты Беркли (также… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”