.\" Man page generated from reStructuredText. . .TH "TSNETACCEPTNAMEDPROTOCOL" "3ts" "Mar 08, 2019" "7.1" "Apache Traffic Server" .SH NAME TSNetAcceptNamedProtocol \- listen on all SSL ports for connections for the specified protocol name . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fI#include \fP .INDENT 0.0 .TP .B TSReturnCode TSNetAcceptNamedProtocol(TSCont\fI\ contp\fP, const char *\fI\ protocol\fP) .UNINDENT .SH DESCRIPTION .sp \fI\%TSNetAcceptNamedProtocol\fP registers the specified \fIprotocol\fP 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 \fIcontp\fP\&. .sp \fBNOTE:\fP .INDENT 0.0 .INDENT 3.5 Be aware that the protocol is not registered on ports opened by other plugins. .UNINDENT .UNINDENT .sp The event and data provided to the handler are the same as for \fBTSNetAccept()\fP\&. If a connection is successfully accepted, the event code will be \fBTS_EVENT_NET_ACCEPT\fP and the event data will be a valid \fBTSVConn\fP bound to the accepted connection. .sp \fBIMPORTANT:\fP .INDENT 0.0 .INDENT 3.5 Neither \fIcontp\fP nor \fIprotocol\fP are copied. They must remain valid for the lifetime of the plugin. .UNINDENT .UNINDENT .sp \fI\%TSNetAcceptNamedProtocol\fP 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. .SH COPYRIGHT 2019, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .