OTSocket class for otlib