A brief file description. More...
Go to the source code of this file.
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file experimental.h.
#define MAX_CLUSTER_NODES 256 |
Definition at line 382 of file experimental.h.
#define TS_HRTIME_APPROX_FACTOR (((float)(1<<30))/(((float)HRTIME_SECOND))) |
Definition at line 145 of file experimental.h.
#define TS_HRTIME_APPROX_SECONDS | ( | _x | ) | ((_x)>>30) |
Definition at line 144 of file experimental.h.
#define TS_HRTIME_DAY (24*TS_HRTIME_HOUR) |
Definition at line 136 of file experimental.h.
#define TS_HRTIME_DAYS | ( | _x | ) | ((_x)*TS_HRTIME_DAY) |
Definition at line 156 of file experimental.h.
#define TS_HRTIME_DECADE (10*TS_HRTIME_YEAR) |
Definition at line 133 of file experimental.h.
#define TS_HRTIME_FOREVER (10*TS_HRTIME_DECADE) |
Definition at line 132 of file experimental.h.
#define TS_HRTIME_HOUR (60*TS_HRTIME_MINUTE) |
Definition at line 137 of file experimental.h.
#define TS_HRTIME_HOURS | ( | _x | ) | ((_x)*TS_HRTIME_HOUR) |
Definition at line 157 of file experimental.h.
#define TS_HRTIME_MINUTE (60*TS_HRTIME_SECOND) |
Definition at line 138 of file experimental.h.
#define TS_HRTIME_MINUTES | ( | _x | ) | ((_x)*TS_HRTIME_MINUTE) |
Definition at line 158 of file experimental.h.
#define TS_HRTIME_MSECOND (1000*TS_HRTIME_USECOND) |
Definition at line 140 of file experimental.h.
Referenced by spdy_read_fetch_body_callback().
#define TS_HRTIME_MSECONDS | ( | _x | ) | ((_x)*TS_HRTIME_MSECOND) |
Definition at line 160 of file experimental.h.
#define TS_HRTIME_NSECOND (1LL) |
Definition at line 142 of file experimental.h.
#define TS_HRTIME_NSECONDS | ( | _x | ) | ((_x)*TS_HRTIME_NSECOND) |
Definition at line 162 of file experimental.h.
#define TS_HRTIME_SECOND (1000*TS_HRTIME_MSECOND) |
Definition at line 139 of file experimental.h.
#define TS_HRTIME_SECONDS | ( | _x | ) | ((_x)*TS_HRTIME_SECOND) |
Definition at line 159 of file experimental.h.
#define TS_HRTIME_USECOND (1000*TS_HRTIME_NSECOND) |
Definition at line 141 of file experimental.h.
#define TS_HRTIME_USECONDS | ( | _x | ) | ((_x)*TS_HRTIME_USECOND) |
Definition at line 161 of file experimental.h.
#define TS_HRTIME_WEEK (7*TS_HRTIME_DAY) |
Definition at line 135 of file experimental.h.
#define TS_HRTIME_WEEKS | ( | _x | ) | ((_x)*TS_HRTIME_WEEK) |
Definition at line 155 of file experimental.h.
#define TS_HRTIME_YEAR (365*TS_HRTIME_DAY+TS_HRTIME_DAY/4) |
Definition at line 134 of file experimental.h.
#define TS_HRTIME_YEARS | ( | _x | ) | ((_x)*TS_HRTIME_YEAR) |
Definition at line 154 of file experimental.h.
#define TS_HTTP_CNTL_OFF (void*) 0 |
Definition at line 91 of file experimental.h.
Referenced by TSHttpTxnCntl().
#define TS_HTTP_CNTL_ON (void*) 1 |
Definition at line 92 of file experimental.h.
Referenced by TSHttpTxnCntl().
#define TS_MATCHER_LINE_INVALID 0 |
Definition at line 283 of file experimental.h.
#define TS_NET_EVENT_DATAGRAM_ERROR TS_EVENT_INTERNAL_212 |
Definition at line 349 of file experimental.h.
#define TS_NET_EVENT_DATAGRAM_OPEN TS_EVENT_INTERNAL_211 |
Definition at line 348 of file experimental.h.
Referenced by handle_callbacks(), and UDPClient_handle_callbacks().
#define TS_NET_EVENT_DATAGRAM_READ_COMPLETE TS_EVENT_INTERNAL_206 |
Definition at line 343 of file experimental.h.
#define TS_NET_EVENT_DATAGRAM_READ_ERROR TS_EVENT_INTERNAL_207 |
Definition at line 344 of file experimental.h.
#define TS_NET_EVENT_DATAGRAM_READ_READY TS_EVENT_INTERNAL_210 |
Definition at line 347 of file experimental.h.
Referenced by handle_callbacks(), and UDPClient_handle_callbacks().
#define TS_NET_EVENT_DATAGRAM_WRITE_COMPLETE TS_EVENT_INTERNAL_208 |
Definition at line 345 of file experimental.h.
Referenced by handle_callbacks(), and UDPClient_handle_callbacks().
#define TS_NET_EVENT_DATAGRAM_WRITE_ERROR TS_EVENT_INTERNAL_209 |
Definition at line 346 of file experimental.h.
typedef void(* TSClusterRPCFunction)(TSNodeHandle_t *node, TSClusterRPCMsg_t *msg, int msg_data_len) |
Definition at line 418 of file experimental.h.
typedef struct TSClusterRPCHandle TSClusterRPCHandle_t |
typedef struct TSClusterRPCMsg TSClusterRPCMsg_t |
typedef void(* TSClusterStatusFunction)(TSNodeHandle_t *node, TSNodeStatus_t s) |
Definition at line 419 of file experimental.h.
typedef int TSClusterStatusHandle_t |
Definition at line 389 of file experimental.h.
typedef struct tsapi_fetchsm* TSFetchSM |
Definition at line 57 of file experimental.h.
typedef struct tsapi_matcheline* TSMatcherLine |
Definition at line 284 of file experimental.h.
typedef int TSNodeHandle_t |
Definition at line 390 of file experimental.h.
typedef int(* TSPluginFreshnessCalcFunc)(TSCont contp) |
Definition at line 105 of file experimental.h.
typedef TSPrefetchReturnCode(* TSPrefetchHook)(TSPrefetchHookID hook, TSPrefetchInfo *prefetch_info) |
Definition at line 615 of file experimental.h.
enum TSClusterRPCKey_t |
Definition at line 404 of file experimental.h.
enum TSFetchEventExt |
TS_FETCH_EVENT_EXT_HEAD_READY | |
TS_FETCH_EVENT_EXT_HEAD_DONE | |
TS_FETCH_EVENT_EXT_BODY_READY | |
TS_FETCH_EVENT_EXT_BODY_DONE |
Definition at line 40 of file experimental.h.
enum TSFetchFlags |
TS_FETCH_FLAGS_NONE | |
TS_FETCH_FLAGS_STREAM | |
TS_FETCH_FLAGS_DECHUNK | |
TS_FETCH_FLAGS_NEWLOCK | |
TS_FETCH_FLAGS_NOT_INTERNAL_REQUEST |
Definition at line 48 of file experimental.h.
enum TSHttpCntlType |
TS_HTTP_CNTL_GET_LOGGING_MODE | |
TS_HTTP_CNTL_SET_LOGGING_MODE | |
TS_HTTP_CNTL_GET_INTERCEPT_RETRY_MODE | |
TS_HTTP_CNTL_SET_INTERCEPT_RETRY_MODE |
Definition at line 83 of file experimental.h.
enum TSNodeStatus_t |
Definition at line 398 of file experimental.h.
enum TSPrefetchBlastType |
Definition at line 512 of file experimental.h.
enum TSPrefetchHookID |
TS_PREFETCH_PRE_PARSE_HOOK | |
TS_PREFETCH_EMBEDDED_URL_HOOK | |
TS_PREFETCH_EMBEDDED_OBJECT_HOOK |
Definition at line 543 of file experimental.h.
enum TSPrefetchReturnCode |
Definition at line 535 of file experimental.h.
enum TSPrefetchStatus |
TS_PREFETCH_OBJ_BUF_NOT_NEEDED | |
TS_PREFETCH_OBJ_BUF_NEEDED | |
TS_PREFETCH_OBJ_BUF_NEEDED_N_TRANSMITTED |
Definition at line 525 of file experimental.h.
tsapi int TSAddClusterRPCFunction | ( | TSClusterRPCKey_t | k, | |
TSClusterRPCFunction | RPC_Function, | |||
TSClusterRPCHandle_t * | h | |||
) |
Definition at line 433 of file ClusterAPI.cc.
References API_END_CLUSTER_FUNCTION, API_STARECT_CLUSTER_FUNCTION, Debug, RPCHandle::external, ink_release_assert, RPCHandle::internal, MUTEX_TAKE_LOCK, MUTEX_UNTAKE_LOCK, RPC_FUNCTION_KEY_TO_CLUSTER_NUMBER, RPC_Functions, this_ethread(), and RPCHandle::u.
tsapi int TSAddClusterStatusFunction | ( | TSClusterStatusFunction | Status_Function, | |
TSMutex | m, | |||
TSClusterStatusHandle_t * | h | |||
) |
Definition at line 299 of file ClusterAPI.cc.
References Debug, node_callout_entry::func, func, INDEX_TO_CLUSTER_STATUS_HANDLE, ink_release_assert, node_callout_entry::mutex, MUTEX_TAKE_LOCK, MUTEX_UNTAKE_LOCK, and this_ethread().
tsapi TSClusterRPCMsg_t* TSAllocClusterRPCMsg | ( | TSClusterRPCHandle_t * | h, | |
int | data_size | |||
) |
Definition at line 520 of file ClusterAPI.cc.
References OutgoingControl::alloc(), OutgoingControl::alloc_data(), ClusterControl::data, ink_assert, ClusterControl::len, TSClusterRPCMsg::m_handle, and SIZEOF_RPC_MSG_LESS_DATA.
tsapi TSReturnCode TSCacheBufferInfoGet | ( | TSCacheTxn | txnp, | |
uint64_t * | length, | |||
uint64_t * | offset | |||
) |
tsapi TSReturnCode TSCacheDataTypeReady | ( | TSCacheDataType | type, | |
int * | is_ready | |||
) |
Definition at line 6565 of file InkAPI.cc.
References cacheProcessor, CacheProcessor::IsCacheReady(), sdk_assert, sdk_sanity_check_null_ptr(), TS_CACHE_DATA_TYPE_HTTP, TS_CACHE_DATA_TYPE_NONE, TS_CACHE_DATA_TYPE_OTHER, and TS_SUCCESS.
Referenced by TSCacheReady().
tsapi TSCacheHttpInfo TSCacheHttpInfoCopy | ( | TSCacheHttpInfo | infop | ) |
tsapi TSCacheHttpInfo TSCacheHttpInfoCreate | ( | ) |
tsapi void TSCacheHttpInfoDestroy | ( | TSCacheHttpInfo | infop | ) |
tsapi void TSCacheHttpInfoKeySet | ( | TSCacheHttpInfo | infop, | |
TSCacheKey | key | |||
) |
tsapi void TSCacheHttpInfoReqGet | ( | TSCacheHttpInfo | infop, | |
TSMBuffer * | bufp, | |||
TSMLoc * | obj | |||
) |
Definition at line 4013 of file InkAPI.cc.
References sdk_sanity_check_mbuffer().
tsapi time_t TSCacheHttpInfoReqSentTimeGet | ( | TSCacheHttpInfo | infop | ) |
tsapi void TSCacheHttpInfoReqSet | ( | TSCacheHttpInfo | infop, | |
TSMBuffer | bufp, | |||
TSMLoc | obj | |||
) |
Definition at line 4055 of file InkAPI.cc.
References SET_HTTP_HDR.
tsapi void TSCacheHttpInfoRespGet | ( | TSCacheHttpInfo | infop, | |
TSMBuffer * | bufp, | |||
TSMLoc * | obj | |||
) |
Definition at line 4024 of file InkAPI.cc.
References sdk_sanity_check_mbuffer().
tsapi time_t TSCacheHttpInfoRespReceivedTimeGet | ( | TSCacheHttpInfo | infop | ) |
tsapi void TSCacheHttpInfoRespSet | ( | TSCacheHttpInfo | infop, | |
TSMBuffer | bufp, | |||
TSMLoc | obj | |||
) |
Definition at line 4067 of file InkAPI.cc.
References SET_HTTP_HDR.
int64_t TSCacheHttpInfoSizeGet | ( | TSCacheHttpInfo | infop | ) |
tsapi void TSCacheHttpInfoSizeSet | ( | TSCacheHttpInfo | infop, | |
int64_t | size | |||
) |
tsapi int TSCacheHttpInfoVector | ( | TSCacheHttpInfo | infop, | |
void * | data, | |||
int | length | |||
) |
Definition at line 4079 of file InkAPI.cc.
References CacheHTTPInfoVector::insert(), CacheHTTPInfoVector::marshal(), and CacheHTTPInfoVector::marshal_length().
tsapi TSReturnCode TSCacheKeyDataTypeSet | ( | TSCacheKey | key, | |
TSCacheDataType | type | |||
) |
Definition at line 3933 of file InkAPI.cc.
References CACHE_INFO_MAGIC_ALIVE, sdk_assert, sdk_sanity_check_cachekey(), TS_CACHE_DATA_TYPE_HTTP, TS_CACHE_DATA_TYPE_NONE, TS_CACHE_DATA_TYPE_OTHER, and TS_SUCCESS.
tsapi int TSDeleteClusterRPCFunction | ( | TSClusterRPCHandle_t * | h | ) |
Definition at line 463 of file ClusterAPI.cc.
References API_END_CLUSTER_FUNCTION, API_STARECT_CLUSTER_FUNCTION, Debug, ink_release_assert, RPCHandle::internal, MUTEX_TAKE_LOCK, MUTEX_UNTAKE_LOCK, RPC_Functions, this_ethread(), and RPCHandle::u.
tsapi int TSDeleteClusterStatusFunction | ( | TSClusterStatusHandle_t * | h | ) |
Definition at line 330 of file ClusterAPI.cc.
References CLUSTER_STATUS_HANDLE_TO_INDEX, Debug, node_callout_entry::func, ink_release_assert, MAX_CLUSTERSTATUS_CALLOUTS, node_callout_entry::mutex, MUTEX_TAKE_LOCK, MUTEX_UNTAKE_LOCK, node_callout_entry::state, and this_ethread().
tsapi double TSdrandom | ( | void | ) |
Definition at line 1697 of file InkAPI.cc.
References InkRand::drandom(), EThread::generator, and this_ethread().
tsapi void TSEnableClusterStatusCallout | ( | TSClusterStatusHandle_t * | h | ) |
Definition at line 367 of file ClusterAPI.cc.
References CLUSTER_STATUS_HANDLE_TO_INDEX, Debug, ink_release_assert, MAX_CLUSTERSTATUS_CALLOUTS, NE_STATE_INITIALIZED, and send_machine_online_list().
tsapi TSFetchSM TSFetchCreate | ( | TSCont | contp, | |
const char * | method, | |||
const char * | url, | |||
const char * | version, | |||
struct sockaddr const * | client_addr, | |||
int | flags | |||
) |
Extended FetchSM's AIPs.
Definition at line 7279 of file InkAPI.cc.
References ClassAllocator< C >::alloc(), ats_is_ip(), FetchSM::ext_init(), sdk_assert, sdk_sanity_check_continuation(), and TS_SUCCESS.
Referenced by spdy_fetcher_launch().
tsapi void TSFetchDestroy | ( | TSFetchSM | fetch_sm | ) |
Definition at line 7329 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by SpdyRequest::clear().
tsapi void TSFetchHeaderAdd | ( | TSFetchSM | fetch_sm, | |
const char * | name, | |||
int | name_len, | |||
const char * | value, | |||
int | value_len | |||
) |
Definition at line 7295 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by spdy_fetcher_launch().
tsapi void TSFetchLaunch | ( | TSFetchSM | fetch_sm | ) |
Definition at line 7321 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by spdy_fetcher_launch().
tsapi ssize_t TSFetchReadData | ( | TSFetchSM | fetch_sm, | |
void * | buf, | |||
size_t | len | |||
) |
Definition at line 7313 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by spdy_read_fetch_body_callback().
Definition at line 7371 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by SpdyNV::SpdyNV().
Definition at line 7379 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by SpdyNV::SpdyNV().
tsapi void* TSFetchUserDataGet | ( | TSFetchSM | fetch_sm | ) |
Definition at line 7363 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by spdy_process_fetch(), spdy_process_fetch_body(), and spdy_process_fetch_header().
tsapi void TSFetchUserDataSet | ( | TSFetchSM | fetch_sm, | |
void * | data | |||
) |
Definition at line 7337 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by spdy_fetcher_launch().
tsapi void TSFetchWriteData | ( | TSFetchSM | fetch_sm, | |
const void * | data, | |||
size_t | len | |||
) |
Definition at line 7305 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.
Referenced by spdy_on_data_chunk_recv_callback().
tsapi void TSFreeRPCMsg | ( | TSClusterRPCMsg_t * | msg, | |
int | msg_data_len | |||
) |
Definition at line 507 of file ClusterAPI.cc.
References clusterProcessor, Debug, ClusterProcessor::free_remote_data(), ink_release_assert, RPCHandle::internal, TSClusterRPCMsg::m_handle, RPC_HANDLE_MAGIC, SIZEOF_RPC_MSG_LESS_DATA, and RPCHandle::u.
tsapi void TSGetMyNodeHandle | ( | TSNodeHandle_t * | h | ) |
Definition at line 355 of file ClusterAPI.cc.
References IP_TO_NODE_HANDLE, and this_cluster_machine().
tsapi TSHRTime TShrtime | ( | void | ) |
Definition at line 1703 of file InkAPI.cc.
References ink_get_based_hrtime().
Referenced by SpdyClientSession::init(), SpdyRequest::init(), and spdy_read_fetch_body_callback().
tsapi void TSHttpIcpDynamicSet | ( | int | value | ) |
Definition at line 4397 of file InkAPI.cc.
References icp_dynamic_enabled.
tsapi TSReturnCode TSHttpTxnCachedRespTimeGet | ( | TSHttpTxn | txnp, | |
time_t * | resp_time | |||
) |
Definition at line 5917 of file InkAPI.cc.
References HttpTransact::State::cache_info, HTTPInfo::response_received_time_get(), sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, TS_ERROR, TS_SUCCESS, and HTTPInfo::valid().
tsapi TSReturnCode TSHttpTxnCacheLookupCountGet | ( | TSHttpTxn | txnp, | |
int * | lookup_count | |||
) |
Definition at line 4782 of file InkAPI.cc.
References HttpTransact::State::cache_info, sdk_assert, sdk_sanity_check_null_ptr(), sdk_sanity_check_txn(), HttpSM::t_state, and TS_SUCCESS.
tsapi void TSHttpTxnClientKeepaliveSet | ( | TSHttpTxn | txnp, | |
int | set | |||
) |
Definition at line 4519 of file InkAPI.cc.
References HttpTransact::State::hdr_info, and HttpSM::t_state.
tsapi int TSHttpTxnClientReqIsServerStyle | ( | TSHttpTxn | txnp | ) |
Definition at line 5115 of file InkAPI.cc.
References HttpTransact::State::hdr_info, sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, and TS_SUCCESS.
tsapi TSReturnCode TSHttpTxnCloseAfterResponse | ( | TSHttpTxn | txnp, | |
int | should_close | |||
) |
Definition at line 8507 of file InkAPI.cc.
References HttpTransact::State::client_info, HTTP_NO_KEEPALIVE, sdk_sanity_check_txn(), HttpSM::set_ua_half_close_flag(), HttpSM::t_state, TS_SUCCESS, and HttpSM::ua_session.
tsapi TSReturnCode TSHttpTxnCntl | ( | TSHttpTxn | txnp, | |
TSHttpCntlType | cntl, | |||
void * | data | |||
) |
Definition at line 5647 of file InkAPI.cc.
References HttpTransact::State::api_info, _HttpApiInfo::logging_enabled, _HttpApiInfo::retry_intercept_failures, sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, TS_HTTP_CNTL_GET_INTERCEPT_RETRY_MODE, TS_HTTP_CNTL_GET_LOGGING_MODE, TS_HTTP_CNTL_OFF, TS_HTTP_CNTL_ON, TS_HTTP_CNTL_SET_INTERCEPT_RETRY_MODE, TS_HTTP_CNTL_SET_LOGGING_MODE, and TS_SUCCESS.
tsapi TSReturnCode TSHttpTxnHookRegisteredFor | ( | TSHttpTxn | txnp, | |
TSHttpHookID | id, | |||
TSEventFunc | funcp | |||
) |
Definition at line 4493 of file InkAPI.cc.
References APIHook::m_cont, INKContInternal::m_event_func, APIHook::next(), and HttpSM::txn_hook_get().
tsapi int TSHttpTxnLookingUpTypeGet | ( | TSHttpTxn | txnp | ) |
Definition at line 5932 of file InkAPI.cc.
References HttpTransact::State::current, sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, and TS_SUCCESS.
tsapi TSReturnCode TSHttpTxnNewCacheLookupDo | ( | TSHttpTxn | txnp, | |
TSMBuffer | bufp, | |||
TSMLoc | url_loc | |||
) |
Definition at line 4859 of file InkAPI.cc.
References HttpSM::add_cache_sm(), HttpTransact::State::api_cleanup_cache_read, HttpTransact::State::cache_info, URL::copy(), URL::create(), URL::hash_get(), HttpTransact::State::hdr_info, HdrHeapSDKHandle::m_heap, URL::m_url_impl, sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_txn(), sdk_sanity_check_url_handle(), HttpSM::t_state, HttpTransact::State::transact_return_point, TS_ERROR, TS_SUCCESS, and URL::valid().
tsapi void TSHttpTxnOverwriteExpireTime | ( | TSHttpTxn | txnp, | |
time_t | expire_time | |||
) |
Definition at line 5124 of file InkAPI.cc.
References HttpTransact::State::plugin_set_expire_time, sdk_assert, sdk_sanity_check_txn(), and TS_SUCCESS.
tsapi TSReturnCode TSHttpTxnRedirectRequest | ( | TSHttpTxn | txnp, | |
TSMBuffer | bufp, | |||
TSMLoc | url_loc | |||
) |
Definition at line 4929 of file InkAPI.cc.
References HttpTransact::State::api_release_server_session, HttpTransact::State::cache_info, URL::copy(), URL::create(), HttpTransact::State::hdr_info, HdrHeapSDKHandle::m_heap, URL::m_url_impl, HttpTransact::State::next_action, HttpTransact::State::redirect_info, HttpTransact::State::request_sent_time, HttpTransact::State::response_received_time, sdk_assert, sdk_sanity_check_mbuffer(), sdk_sanity_check_txn(), sdk_sanity_check_url_handle(), HttpSM::t_state, TS_ERROR, TS_SUCCESS, and URL::valid().
tsapi TSReturnCode TSHttpTxnSecondUrlTryLock | ( | TSHttpTxn | txnp | ) |
Definition at line 4913 of file InkAPI.cc.
References HttpSM::add_cache_sm(), HttpTransact::State::api_lock_url, HttpTransact::State::cache_info, sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, TS_ERROR, and TS_SUCCESS.
tsapi void TSHttpTxnServerRequestBodySet | ( | TSHttpTxn | txnp, | |
char * | buf, | |||
int64_t | buflength | |||
) |
Definition at line 5426 of file InkAPI.cc.
References HttpTransact::State::api_server_request_body_set, HttpTransact::State::free_internal_msg_buffer(), HttpTransact::State::internal_msg_buffer, HttpTransact::State::internal_msg_buffer_fast_allocator_size, HttpTransact::State::internal_msg_buffer_size, sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, and TS_SUCCESS.
tsapi TSReturnCode TSHttpTxnServerRespIgnore | ( | TSHttpTxn | txnp | ) |
Definition at line 5039 of file InkAPI.cc.
References HttpTransact::State::api_server_response_ignore, HttpTransact::State::cache_info, HTTPInfo::response_get(), sdk_assert, sdk_sanity_check_txn(), TS_ERROR, TS_SUCCESS, HTTPHdr::valid(), and HTTPInfo::valid().
tsapi TSReturnCode TSHttpTxnShutDown | ( | TSHttpTxn | txnp, | |
TSEvent | event | |||
) |
Definition at line 5060 of file InkAPI.cc.
References HttpTransact::State::api_http_sm_shutdown, sdk_assert, sdk_sanity_check_txn(), TS_EVENT_HTTP_TXN_CLOSE, and TS_SUCCESS.
tsapi TSReturnCode TSHttpTxnUpdateCachedObject | ( | TSHttpTxn | txnp | ) |
Definition at line 5133 of file InkAPI.cc.
References HttpTransact::State::api_update_cached_object, HttpTransact::State::cache_info, HttpTransact::CACHE_WL_READ_RETRY, HttpTransact::State::hdr_info, HTTPInfo::request_get(), HTTPInfo::response_get(), sdk_assert, sdk_sanity_check_txn(), HttpSM::t_state, TS_ERROR, TS_SUCCESS, HTTPHdr::valid(), and HTTPInfo::valid().
tsapi TSReturnCode TSICPCachedReqGet | ( | TSCont | contp, | |
TSMBuffer * | bufp, | |||
TSMLoc * | obj | |||
) |
Definition at line 7026 of file InkAPI.cc.
References ICPPeerReadCont::_cache_req_hdr_heap_handle, ICPPeerReadCont::_object_read, ats_malloc(), HdrHeapSDKHandle::m_heap, HTTPHdr::m_http, HTTPInfo::request_get(), sdk_assert, sdk_sanity_check_continuation(), sdk_sanity_check_mbuffer(), sdk_sanity_check_null_ptr(), TS_ERROR, TS_SUCCESS, HTTPHdr::valid(), and HTTPInfo::valid().
tsapi TSReturnCode TSICPCachedRespGet | ( | TSCont | contp, | |
TSMBuffer * | bufp, | |||
TSMLoc * | obj | |||
) |
Definition at line 7059 of file InkAPI.cc.
References ICPPeerReadCont::_cache_resp_hdr_heap_handle, ICPPeerReadCont::_object_read, ats_malloc(), HdrHeapSDKHandle::m_heap, HTTPHdr::m_http, HTTPInfo::response_get(), sdk_assert, sdk_sanity_check_continuation(), sdk_sanity_check_mbuffer(), sdk_sanity_check_null_ptr(), TS_ERROR, TS_SUCCESS, HTTPHdr::valid(), and HTTPInfo::valid().
tsapi void TSICPFreshnessFuncSet | ( | TSPluginFreshnessCalcFunc | funcp | ) |
Definition at line 7020 of file InkAPI.cc.
References pluginFreshnessCalcFunc.
tsapi char* TSMatcherExtractIPRange | ( | char * | match_str, | |
uint32_t * | addr1, | |||
uint32_t * | addr2 | |||
) |
Definition at line 6947 of file InkAPI.cc.
References ExtractIpRange(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.
tsapi TSMatcherLine TSMatcherLineCreate | ( | ) |
Definition at line 6961 of file InkAPI.cc.
References ats_malloc().
tsapi void TSMatcherLineDestroy | ( | TSMatcherLine | ml | ) |
Definition at line 6967 of file InkAPI.cc.
References ats_free(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.
tsapi char* TSMatcherLineName | ( | TSMatcherLine | ml, | |
int | element | |||
) |
Definition at line 6981 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.
tsapi char* TSMatcherLineValue | ( | TSMatcherLine | ml, | |
int | element | |||
) |
Definition at line 6988 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.
tsapi const char* TSMatcherParseSrcIPConfigLine | ( | char * | line, | |
TSMatcherLine | ml | |||
) |
Definition at line 6974 of file InkAPI.cc.
References ip_allow_tags, parseConfigLine(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.
tsapi char* TSMatcherReadIntoBuffer | ( | char * | file_name, | |
int * | file_len | |||
) |
Definition at line 6933 of file InkAPI.cc.
References readIntoBuffer(), sdk_assert, sdk_sanity_check_null_ptr(), and TS_SUCCESS.
tsapi char* TSMatcherTokLine | ( | char * | buffer, | |
char ** | last | |||
) |
Definition at line 6940 of file InkAPI.cc.
References sdk_assert, sdk_sanity_check_null_ptr(), tokLine(), and TS_SUCCESS.
tsapi TSReturnCode TSMgmtConfigIntSet | ( | const char * | var_name, | |
TSMgmtInt | value | |||
) |
Definition at line 6996 of file InkAPI.cc.
References RecSignalManager(), TS_SUCCESS, and TSMgmtIntGet().
Definition at line 2627 of file InkAPI.cc.
References MIMEFieldSDKHandle::field_ptr, sdk_assert, sdk_sanity_check_field_handle(), sdk_sanity_check_mbuffer(), and TS_SUCCESS.
tsapi TSAction TSNetConnectTransparent | ( | TSCont | contp, | |
struct sockaddr const * | from, | |||
struct sockaddr const * | to | |||
) |
Opens a network connection to the host specified by the 'to' sockaddr spoofing the client addr to equal the 'from' sockaddr.
If the connection is successfully opened, contp is called back with the event TS_EVENT_NET_CONNECT and the new network vconnection will be passed in the event data parameter. If the connection is not successful, contp is called back with the event TS_EVENT_NET_CONNECT_FAILED.
Note: It is possible to receive TS_EVENT_NET_CONNECT even if the connection failed, because of the implementation of network sockets in the underlying operating system. There is an exception: if a plugin tries to open a connection to a port on its own host machine, then TS_EVENT_NET_CONNECT is sent only if the connection is successfully opened. In general, however, your plugin needs to look for an TS_EVENT_VCONN_WRITE_READY to be sure that the connection is successfully opened.
contp | continuation that is called back when the attempted net connection either succeeds or fails. | |
from | Address to spoof as connection origin | |
to | Address to which to connect. |
tsapi int TSNodeHandleToIPAddr | ( | TSNodeHandle_t * | h, | |
struct in_addr * | in | |||
) |
Definition at line 348 of file ClusterAPI.cc.
References NODE_HANDLE_TO_IP.
tsapi TSReturnCode TSPluginDescriptorAccept | ( | TSCont | contp | ) |
Attempt to attach the contp continuation to sockets that have already been opened by the traffic manager and defined as belonging to plugins (based on records.config configuration).
If a connection is successfully accepted, the TS_EVENT_NET_ACCEPT is delivered to the continuation. The event data will be a valid TSVConn bound to the accepted connection. In order to configure such a socket, add the "plugin" keyword to a port in proxy.config.http.server_ports like "8082:plugin" Transparency/IP settings can also be defined, but a port cannot have both the "ssl" or "plugin" keywords configured.
Need to update records.config comments on proxy.config.http.server_ports when this option is promoted from experimental.
Definition at line 8557 of file InkAPI.cc.
References HttpProxyPort::global(), HttpProxyPort::isPlugin(), Vec< C, A, S >::length(), HttpProxyPort::m_fd, NetProcessor::main_accept(), make_net_accept_options(), netProcessor, and TS_SUCCESS.
tsapi int TSPrefetchHookSet | ( | int | hook_no, | |
TSPrefetchHook | hook_fn | |||
) |
Definition at line 2248 of file Prefetch.cc.
References PrefetchConfiguration::embedded_obj_hook, PrefetchConfiguration::embedded_url_hook, PrefetchConfiguration::pre_parse_hook, TS_PREFETCH_EMBEDDED_OBJECT_HOOK, TS_PREFETCH_EMBEDDED_URL_HOOK, and TS_PREFETCH_PRE_PARSE_HOOK.
tsapi unsigned int TSrandom | ( | void | ) |
Definition at line 1691 of file InkAPI.cc.
References EThread::generator, InkRand::random(), and this_ethread().
tsapi int TSSendClusterRPC | ( | TSNodeHandle_t * | nh, | |
TSClusterRPCMsg_t * | msg | |||
) |
Definition at line 551 of file ClusterAPI.cc.
References CLUSTER_OPT_STEAL, clusterProcessor, Cluster::current_configuration(), Debug, DOT_SEPARATED, ClusterConfiguration::find(), ink_release_assert, RPCHandle::internal, ClusterProcessor::invoke_remote(), TSClusterRPCMsg::m_handle, NODE_HANDLE_TO_IP, ClusterMachine::pop_ClusterHandler(), RPC_HANDLE_MAGIC, this_cluster(), and RPCHandle::u.
tsapi void TSVConnCacheHttpInfoSet | ( | TSVConn | connp, | |
TSCacheHttpInfo | infop | |||
) |
Definition at line 6329 of file InkAPI.cc.
References CacheVC::base_stat, cache_scan_active_stat, sdk_assert, sdk_sanity_check_iocore_structure(), and TS_SUCCESS.