Send and receive  packets

The application is also threaded.