Allows to create a BEEP listener to receiving incoming
connections. Here is an example:

# create a listenerlistener=vortex.create_listener(ctx,"0.0.0.0","44010")# check listener startedifnotlistener.is_ok():# do some error handlingsys.exit(-1)# do a wait operationvortex.wait_listeners(ctx,unlock_on_signal=True)

start (Channel start handler) – User defined handler that will be used to manage incoming start channel requests. The handler must provide return True to accept the channel to be created or False to deny it.

start_data (object) – User defined data that will notified along with corresponding data at start handler.

close (Channel close handler) – User defined handler that will be used to manage incoming close channel requests. The handler must provide return True to accept the channel to be closed or False to deny it.

close_data (object) – User defined data that will notified along with corresponding data at close channel handler.

frame_received (Frame received handler) – User defined handler that will be used to manage frames received under channels running this profile.

frame_received_data (object) – User defined data that will notified along with corresponding data at frame received handler.

Function used inside the queue reply method. This function is used
as frame received handler, queuring all frames in the queue
provided as user data. The, a call to channel.get_reply (queue) is
required to get all frames received.

Here is an example:

# configure frame received handlerqueue=vortex.AsyncQueue()channel.set_frame_received(vortex.queue_reply,queue)# wait for frames to be receivedframe=channel.get_reply(queue)