I'm developing a simple app. which will iterate thru' a list of IP address(s) & its Port(s), use SocketMonitor to check the availability of the resource & set an icon (red/green) against each IP, based on its availability, in a DataGrid. When using SocketMonitor, i need to register a listener for the StatusEvent to monitor the availability. Looping isn't working as expected b'coz the StatusEvent is received much later than the looping process, which completes earlier. How can i best achieve this by reading each IP/Port from the list one by one & check that resource's availability?