What kind of debug output statement is valid in getaddrinfo.c?

by 鎹疯秴 鐜 » Fri, 20 May 2011 17:17:53 GMT


Sponsored Links
 Hi, developers:

I am currently developing an IPv6 DNS resolver on Android-x86 platform
in socket programming in C so I would like to modify some code in /
home/ubuntu/android-x86/bionic/libc/netbsd/net/getaddrinfo.c". I want
to do debugging in this file so I am trying to adding debug output
statements in this file.

I 've tried "LOGE", "printf" and "fprintf" but none of them works.
Is there anyone knows what kind of debug output statement is valid in
this file? Thank you very much!!

Best wishes,

Jiechao Wang
BUPT

-- 



Other Threads

1. Self contained ProgressDialog in ListFragment?

I have a ListFragment which loads data in a background thread and shows a
ProgressDialog while it loads. I'm wondering if I can make that dialog
contained to just that fragment so the user can keep doing things in the
other fragments. Is this doable?  Currently, the dialog blocks all
interaction with the UI.

--
Chris Stewart
http://chriswstewart.com

-- 

2. What is the correct way to pause AudioTrack?

I wrote the following code to experiment with the AudioTrack class but
whenever I click the pause button it seems to "REWIND" the track
rather than pause it, am I doing something wrong?
private class PlayAudio extends AsyncTask<Void, Void, Void> implements
                        OnPlaybackPositionUpdateListener {
                AudioTrack audioTrack;
                boolean keepGoing = true;


                boolean speed = false;

                @Override
                protected Void doInBackground(Void... params) {
                        int bufferSize = AudioTrack.getMinBufferSize(frequency,
                                        channelConfiguration, audioEncoding);

                        audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, 
frequency,
                                        channelConfiguration, audioEncoding, 
bufferSize,
                                        AudioTrack.MODE_STREAM);

                        audiodata = fillBuff(myAudio);

                        audioTrack.setPlaybackPositionUpdateListener(this);

                        audioTrack.play();

                        // This while block ensures that a buffer is 
continuously
replenished.
                        while (keepGoing) {
                                audioTrack.write(audiodata, 0, 
audiodata.length);
                        }

                        return null;
                }

                @Override
                public void onMarkerReached(AudioTrack track) {

                }

                @Override
                public void onPeriodicNotification(AudioTrack track) {

                }

                protected void onPostExecute(Void result) {
                }

        }



public void onClick(View v) {
                int id = v.getId();
        if (id == R.id.PausePlaybackButton) {
                        // playTask.maKorin = false;

                        playTask.audioTrack.pause();
        }


//...

}

-- 

3. StartActivity and InstantiationException

4. galaxy 5 kadang restart klo pas lg maen HEAVY GUNNER

5. Nubie minta izin.

6. Scanner GPRS

7. [WTA] most oprekable android