model for a native method SocketInputStream