From e39252ae5048156ac33999ce9bb07212798b6b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 26 Sep 2019 14:05:08 +0200 Subject: Add Gun 2.0-pre documentation But don't propagate via RSS. --- docs/en/gun/2.0/manual/gun.set_owner/index.html | 196 ++++++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 docs/en/gun/2.0/manual/gun.set_owner/index.html (limited to 'docs/en/gun/2.0/manual/gun.set_owner/index.html') diff --git a/docs/en/gun/2.0/manual/gun.set_owner/index.html b/docs/en/gun/2.0/manual/gun.set_owner/index.html new file mode 100644 index 00000000..661aa535 --- /dev/null +++ b/docs/en/gun/2.0/manual/gun.set_owner/index.html @@ -0,0 +1,196 @@ + + + + + + + + + + Nine Nines: gun:set_owner(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

gun:set_owner(3)

+ +

Name

+

gun:set_owner - Set a new owner for the connection

+

Description

+
+
set_owner(ConnPid, OwnerPid) -> ok
+
+ConnPid  :: pid()
+OwnerPid :: pid()
+
+

Set a new owner for the connection.

+

Only the current owner of the connection can set a new owner.

+

Gun monitors the owner of the connection and automatically shuts down gracefully when the owner exits.

+

Arguments

+
ConnPid
+

The pid of the Gun connection process.

+
+
OwnerPid
+

The pid of the new owner for the connection.

+
+
+

Return value

+

The atom ok is returned.

+

Changelog

+
  • 2.0: Function introduced. +
  • +
+

Examples

+
Set a new owner for the connection
+
+
ok = gun:set_owner(ConnPid, OwnerPid).
+
+

See also

+

gun(3), gun:open(3), gun:open_unix(3), gun:shutdown(3), gun:close(3)

+ + + + + + +
+ +
+ + +

+ Gun + 2.0 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+ + +

Like my work? Donate!

+

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

+
+ + + + + + + + + +

Recurring payment options are also available via BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.

+ + + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3