Add API for socket type a/b