Created the Async task for socket operation.