socket utils for android.