# Lick

Urbit's [inter-process communication](https://en.wikipedia.org/wiki/Inter-process_communication) (IPC) module.

Lick manages IPC ports, and the communication between Urbit applications and [POSIX](https://en.wikipedia.org/wiki/POSIX) applications via these ports. Other Arvo modules and applications ask Lick to open an IPC port, notify it when something is connected or disconnected, and transfer data between itself and the Unix application.

The IPC ports Lick creates are Unix domain sockets (`AF_UNIX` address family) of the `SOCK_STREAM` type.

The format of the full message with header and data sent to and from the socket is as follows:

| 1 byte  | 4 bytes           | *n* bytes |
| ------- | ----------------- | --------- |
| version | jam size in bytes | jamfile   |

The version is currently `0`.

The [`+jam`](/hoon/stdlib/2p.md#jam)file contains a pair of `$mark` and `$noun`. The process on the host OS must therefore strip the first 5 bytes, [`+cue`](/hoon/stdlib/2p.md#cue) the jamfile, check the mark, and (most likely) convert the noun into a native data structure.

Here are some libraries that can cue/jam:

* [pynoun](https://github.com/urbit/tools)
* [nockjs](https://github.com/urbit/nockjs)
* [Rust Noun](https://github.com/urbit/noun)

Lick has no novel data types in its API apart from `$name`, which is just a path representing the name of a socket.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.urbit.org/urbit-os/kernel/lick.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
