MCPcopy Create free account
hub / github.com/apache/trafficserver / TSUrlPortSet

Function TSUrlPortSet

src/api/InkAPI.cc:1193–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193TSReturnCode
1194TSUrlPortSet(TSMBuffer bufp, TSMLoc obj, int port)
1195{
1196 sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS);
1197 sdk_assert(sdk_sanity_check_url_handle(obj) == TS_SUCCESS);
1198
1199 if (!isWriteable(bufp) || (port < 0)) {
1200 return TS_ERROR;
1201 }
1202
1203 URL u;
1204
1205 u.m_heap = (reinterpret_cast<HdrHeapSDKHandle *>(bufp))->m_heap;
1206 u.m_url_impl = reinterpret_cast<URLImpl *>(obj);
1207 u.port_set(port);
1208 return TS_SUCCESS;
1209}
1210
1211/* FTP and HTTP specific URLs */
1212

Callers 11

TSRemapDoRemapFunction · 0.85
operator=Method · 0.85
setPortMethod · 0.85
read_requestFunction · 0.85
MakeEscalateUrlFunction · 0.85
execMethod · 0.85
port_setMethod · 0.85

Calls 4

sdk_sanity_check_mbufferFunction · 0.85
isWriteableFunction · 0.85
port_setMethod · 0.45

Tested by 2