Files changed (8)
-A channel can be constructed via lua.channels.new call (from script), with optional string argument.
-A receiver endpoint can be created only via constructing new channel and can't be transferred anywhere.
-If a channel is constructed named, it's placed into global weak registry (global to dynamic lib instance
-and weak in a means that it actually doesn't own channels). A named sender can be later acquired from that registry.
- a) __channel_size__ metatable field or function, should be positive integral size of userdata in bytes (or return it)
- c) __channel_recv__: used to restore userdata from channel buffer; responsible for de-initializing buffer in any case