Hi all, I'm proposing a new API, TSVConnFdCreate.
TSVConn TSVConnFdCreate(int fd) TSVConnFdCreate accepts a file descriptor and returns a new TSVConn that wraps that file descriptor. The file descriptor must be a connected socket. The resulting TSVConn can be used with the standard TS I/O API. If the call returns successfully, the returned TSVConn owns the socket and the caller must not close(2) it. If TSVConnFdCreate() returns NULL, the socket is unchanged and the caller must for close(2) it. My use case for this is to stitch a server intercept to an external API that vends a connected socket. James