# qtisocketsink
The qtisocketsink plugin uses UNIX sockets to transfer file descriptor (FD) backed [GstBuffers](https://gstreamer.freedesktop.org/documentation/gstreamer/gstbuffer.html) to other processes with qtisocketsrc as the entry point.
The qtisocketsink plugin requires a UNIX domain socket file (which should have the extension of .sock) to be passed as the *socket* property to transfer the FD.
The buffers passed from the other process to this plugin are tracked with a reference counter, which is incremented or decremented accordingly when the buffers are sent or returned through the socket.
The following are some of the configurations that can be performed using qtisocketsink:
Table : Configuration properties of qtisocketsink
| Property | Configuration |
| --- | --- |
| *async* | Set to false for the sockets to transition asynchronously to the PAUSED state. |
| *max-lateness* | Adjust the maximum number of nanoseconds that a buffer can be late before it's dropped. |
| *max-bitrate* | Set the maximum bits per second to render. |
## Inheritance chain
[GObject](https://docs.gtk.org/gobject/) → [GstObject](https://gstreamer.freedesktop.org/documentation/gstreamer/gstobject.html?gi-language=c) → [GstElement](https://gstreamer.freedesktop.org/documentation/gstreamer/gstelement.html?gi-language=c) → [GstBaseSink](https://gstreamer.freedesktop.org/documentation/base/gstbasesink.html?gi-language=c) → GstFdSocketSink
The following tables provide information on pad templates and element properties of qtisocketsink. For use cases, see [Single camera stream with socket](https://docs.qualcomm.com/doc/80-80021-50/topic/camera.html#socketsrc-and-socketsink-use-case).
## Pad configuration
| Pad Name | Capabilities | Capabilities |
| --- | --- | --- |
| SINK template: 'sink'
Availability: Always
Direction: sink
flags: readable, writable
String. Default: "fdsocketsink0"
flags: readable, writable
Object of type "GstObject"
flags: readable, writable
Boolean. Default: true
flags: readable, writable
Integer64. Range: ˗1 to 9223372036854775807, default: ˗1
flags: readable, writable
Boolean. Default: false
flags: readable, writable
Boolean. Default: true
flags: readable, writable
Integer64. Range: ˗9223372036854775808 to 9223372036854775807, default: 0
flags: readable, writable
Boolean. Default: true
flags: readable
Boxed pointer of type "GstSample"
flags: readable, writable
Unsigned Integer. Range: 0 - 4294967295 Default: 4096
flags: readable, writable
Unsigned Integer64. Range: 0 to 18446744073709551615, default: 0
flags: readable, writable
Unsigned Integer64. Range: 0 to 18446744073709551615, default: 0
flags: readable, writable
Unsigned Integer64. Range: 0 to 18446744073709551615, default: 0
flags: readable, writable, changeable only in NULL or READY state
String. Default: null