Fix a few things pointed out by Dominick Grift.
Add socket activation interfaces.