Code Added for muliple socket handling

Code Added for multiple(two) sockets handling