socket inputStream example code commit