Code example for SocketException

Methods: printStackTrace

0
		DatagramSocket clientSocket = null;
		try { 
			clientSocket = new DatagramSocket();
		} catch (SocketException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		}  
		try { 
			clientSocket.send(sendPacket);
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		}  
		clientSocket.close(); 
	} 
	 
   
  // From Pausable interface 
  public boolean isPaused() 
  { 
	  return ispaused;