Provided by: trafficserver-dev_5.3.0-2ubuntu2_amd64 bug

NAME

       TSNetAcceptNamedProtocol - listen on all SSL ports for connections for the specified protocol name

SYNOPSIS

       #include <ts/ts.h>

       TSReturnCode TSNetAcceptNamedProtocol(TSCont contp, const char *protocol)

DESCRIPTION

       TSNetAcceptNamedProtocol  registers the specified protocol for all statically configured TLS ports.  When
       a  client  using  the  TLS  Next  Protocol  Negotiation  extension  negotiates  the  requested  protocol,
       TrafficServer  will  route the request to the given handler.  Note that the protocol is not registered on
       ports opened by other plugins.

       The event and data provided to the handler are the  same  as  for  TSNetAccept().   If  a  connection  is
       successfully  accepted,  the  event  code  will be TS_EVENT_NET_ACCEPT and the event data will be a valid
       TSVConn bound to the accepted connection.

       Neither contp nor protocol are copied.  They must remain valid for the lifetime of the plugin.

       TSNetAcceptNamedProtocol fails if the requested protocol cannot be registered on all  of  the  configured
       TLS ports.  If it fails, the protocol will not be registered on any ports (ie..  no partial failure).

COPYRIGHT

       2014, dev@trafficserver.apache.org

5.3                                              April 18, 2016                    TSNETACCEPTNAMEDPROTOCOL(3ts)