---
name: "TSAcceptor"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSAcceptor"
---

# TSAcceptor(3ts)

traffic Server API's related to Accept objects

## NAME

TSAcceptor - traffic Server API's related to Accept objects

## SYNOPSIS

```
#include <ts/ts.h>
```

- ***TSAcceptor* TSAcceptorGet(*TSVConn* sslp)**

  - ***TSAcceptor* TSAcceptorGetbyID(int id)**

  - **int TSAcceptorIDGet(*TSAcceptor* acceptor)**

  - **int TSAcceptorCount()**

  ## DESCRIPTION

Traffic Server allows plugins to get information from an accept object that created a certain TSVConn object using the above mentioned APIs. An acceptor thread listens for incoming connections and creates the virtual connection (*TSVConn*) for each accepted connection.

*TSAcceptorGet()* returns *TSAcceptor* object that created *sslp*.

*TSAcceptorGetbyID()* returns the *TSAcceptor* object identified by *id*. *TSAcceptor* represents the acceptor object created by the server.

*TSAcceptorIDGet()* returns the Integer number that identifies *acceptor*. All the cloned *TSAcceptor* objects will have the same identifying number.

*TSAcceptorCount()* returns the number of *TSAcceptor* objects created by the server.

## COPYRIGHT

2026, dev@trafficserver.apache.org
