On May 15, 2014, at 8:07 AM, James Peach <jpe...@apache.org> wrote:

> 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.

FWIW, this is https://issues.apache.org/jira/browse/TS-2810

J

Reply via email to