server: Make object handles ints instead of pointers.