Code example for DatagramSocket

Methods: connect

0
	 * Creates new UDP socket. 
	 */ 
	private void createUDP(){ 
		// connection 
		try { 
			ds = new DatagramSocket();
			ds.connect(InetAddress.getByName("31.31.79.28"), 1339);
		} catch (SocketException e) {
			e.printStackTrace();
		}catch (UnknownHostException e) {
			e.printStackTrace();
		} 
	} 
	 
	/** 
	 * Returns new instance of MediaRecorder with special settings 
	 * @param pfd 
	 * @return 
	 */ 
	private Boolean setRecorderInstance(ParcelFileDescriptor pfd) {