Socket getType() added for checking UDP/TCP