Java interface for UDP