Filter data with a function
Make an event loop for reading from NetLink socket and Terminal