Code example for SocketException

Methods: getMessage

0
			return socket;
			 
		} catch (UnknownHostException e) {
			Log.e(TAG, e.getMessage());
		} catch (SocketException e) {
			Log.e(TAG, e.getMessage());
		} catch (IOException e) {
			Log.e(TAG, e.getMessage());
		} 
 
		return null; 
	} 
 
	@Override 
	protected void onProgressUpdate(Integer... values) {
		 
	} 
 
	@Override 
	protected void onPostExecute(DatagramSocket result) {
		Log.d(TAG, "Socket connected");