Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

Set:add

Add a socket to the set.

Note: This function will reference the socket in the registry and will not be garbage collected if the owner of the socket delete it. The reference will be removed when the set is destroyed or when the user remove the reference using Set:del.

Method

SYNOPSIS

length, err = function Set:add(s)

ARGUMENTS

RETURNS

  • length, the number of sockets in the set
  • err, the error message

Clone this wiki locally