Hmm, I think @hrydgard is right about using a map instead.  Consider:

1. Add three handlers: 0, 1, and 2.
2. Delete handler 1.
3. Delete handler 2.  But, it doesn't work.  The handlers are 0 and 1 now, there is no 2.

Also, you don't check `handlerID` so there could be an overflow, I think.  What if they pass -1 or 100 when there's no handler there?

Does the PSP return an increasing number from 0 in `sceNetAdhocctlAddHandler()`?  If so it almost definitely will have a max (probably <= 32 at most.)

-[Unknown]