table of contents
TSNETACCEPTNAMEDPROTOCOL(3ts) | Apache Traffic Server | TSNETACCEPTNAMEDPROTOCOL(3ts) |
NAME¶
TSNetAcceptNamedProtocol - listen on all SSL ports for connections for the specified protocol name
SYNOPSIS¶
#include <ts/ts.h>
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, Traffic Server will route the request to the given handler contp.
NOTE:
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.
IMPORTANT:
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. There is no partial failure.
COPYRIGHT¶
2024, dev@trafficserver.apache.org
April 13, 2024 | 9.2 |