reset address list after resetting socket
refactor socket reply parsing to a separate module