Se api

Just for preview. Please don't merge it.
Also applied it to open_session(), open_basic_channel() and open_logical_channel(), they have similar issue.