implementing PortMonitor.setEvent/unsetEvent lua functions