Java socket tryout