Rearrange api to be like net.Socket
bump