Data Structures | Defines | Typedefs | Enumerations | Functions

experimental.h File Reference

A brief file description. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TSClusterRPCHandle
struct  TSClusterRPCMsg
struct  TSPrefetchBlastData
struct  TSPrefetchInfo

Defines

#define TS_HTTP_CNTL_OFF   (void*) 0
#define TS_HTTP_CNTL_ON   (void*) 1
#define TS_HRTIME_FOREVER   (10*TS_HRTIME_DECADE)
#define TS_HRTIME_DECADE   (10*TS_HRTIME_YEAR)
#define TS_HRTIME_YEAR   (365*TS_HRTIME_DAY+TS_HRTIME_DAY/4)
#define TS_HRTIME_WEEK   (7*TS_HRTIME_DAY)
#define TS_HRTIME_DAY   (24*TS_HRTIME_HOUR)
#define TS_HRTIME_HOUR   (60*TS_HRTIME_MINUTE)
#define TS_HRTIME_MINUTE   (60*TS_HRTIME_SECOND)
#define TS_HRTIME_SECOND   (1000*TS_HRTIME_MSECOND)
#define TS_HRTIME_MSECOND   (1000*TS_HRTIME_USECOND)
#define TS_HRTIME_USECOND   (1000*TS_HRTIME_NSECOND)
#define TS_HRTIME_NSECOND   (1LL)
#define TS_HRTIME_APPROX_SECONDS(_x)   ((_x)>>30)
#define TS_HRTIME_APPROX_FACTOR   (((float)(1<<30))/(((float)HRTIME_SECOND)))
#define TS_HRTIME_YEARS(_x)   ((_x)*TS_HRTIME_YEAR)
#define TS_HRTIME_WEEKS(_x)   ((_x)*TS_HRTIME_WEEK)
#define TS_HRTIME_DAYS(_x)   ((_x)*TS_HRTIME_DAY)
#define TS_HRTIME_HOURS(_x)   ((_x)*TS_HRTIME_HOUR)
#define TS_HRTIME_MINUTES(_x)   ((_x)*TS_HRTIME_MINUTE)
#define TS_HRTIME_SECONDS(_x)   ((_x)*TS_HRTIME_SECOND)
#define TS_HRTIME_MSECONDS(_x)   ((_x)*TS_HRTIME_MSECOND)
#define TS_HRTIME_USECONDS(_x)   ((_x)*TS_HRTIME_USECOND)
#define TS_HRTIME_NSECONDS(_x)   ((_x)*TS_HRTIME_NSECOND)
#define TS_MATCHER_LINE_INVALID   0
#define TS_NET_EVENT_DATAGRAM_READ_COMPLETE   TS_EVENT_INTERNAL_206
#define TS_NET_EVENT_DATAGRAM_READ_ERROR   TS_EVENT_INTERNAL_207
#define TS_NET_EVENT_DATAGRAM_WRITE_COMPLETE   TS_EVENT_INTERNAL_208
#define TS_NET_EVENT_DATAGRAM_WRITE_ERROR   TS_EVENT_INTERNAL_209
#define TS_NET_EVENT_DATAGRAM_READ_READY   TS_EVENT_INTERNAL_210
#define TS_NET_EVENT_DATAGRAM_OPEN   TS_EVENT_INTERNAL_211
#define TS_NET_EVENT_DATAGRAM_ERROR   TS_EVENT_INTERNAL_212
#define MAX_CLUSTER_NODES   256

Typedefs

typedef struct tsapi_fetchsm * TSFetchSM
typedef int(* TSPluginFreshnessCalcFunc )(TSCont contp)
typedef struct tsapi_matcheline * TSMatcherLine
typedef struct TSClusterRPCHandle TSClusterRPCHandle_t
typedef int TSClusterStatusHandle_t
typedef int TSNodeHandle_t
typedef struct TSClusterRPCMsg TSClusterRPCMsg_t
typedef void(* TSClusterRPCFunction )(TSNodeHandle_t *node, TSClusterRPCMsg_t *msg, int msg_data_len)
typedef void(* TSClusterStatusFunction )(TSNodeHandle_t *node, TSNodeStatus_t s)
typedef TSPrefetchReturnCode(* TSPrefetchHook )(TSPrefetchHookID hook, TSPrefetchInfo *prefetch_info)

Enumerations

enum  TSFetchEventExt { TS_FETCH_EVENT_EXT_HEAD_READY = -1, TS_FETCH_EVENT_EXT_HEAD_DONE = -2, TS_FETCH_EVENT_EXT_BODY_READY = -3, TS_FETCH_EVENT_EXT_BODY_DONE = -4 }
enum  TSFetchFlags {
  TS_FETCH_FLAGS_NONE = 0, TS_FETCH_FLAGS_STREAM = 1 << 1, TS_FETCH_FLAGS_DECHUNK = 1 << 2, TS_FETCH_FLAGS_NEWLOCK = 1 << 3,
  TS_FETCH_FLAGS_NOT_INTERNAL_REQUEST = 1 << 4
}
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 }
enum  TSNodeStatus_t { NODE_ONLINE = 1, NODE_OFFLINE }
enum  TSClusterRPCKey_t {
  RPC_API_WIRELESS_F01 = 51, RPC_API_WIRELESS_F02, RPC_API_WIRELESS_F03, RPC_API_WIRELESS_F04,
  RPC_API_WIRELESS_F05, RPC_API_WIRELESS_F06, RPC_API_WIRELESS_F07, RPC_API_WIRELESS_F08,
  RPC_API_WIRELESS_F09, RPC_API_WIRELESS_F10
}
enum  TSPrefetchBlastType { TS_PREFETCH_UDP_BLAST = 0, TS_PREFETCH_TCP_BLAST, TS_PREFETCH_MULTICAST_BLAST }
enum  TSPrefetchStatus { TS_PREFETCH_OBJ_BUF_NOT_NEEDED = 0, TS_PREFETCH_OBJ_BUF_NEEDED, TS_PREFETCH_OBJ_BUF_NEEDED_N_TRANSMITTED }
enum  TSPrefetchReturnCode { TS_PREFETCH_CONTINUE, TS_PREFETCH_DISCONTINUE }
enum  TSPrefetchHookID { TS_PREFETCH_PRE_PARSE_HOOK, TS_PREFETCH_EMBEDDED_URL_HOOK, TS_PREFETCH_EMBEDDED_OBJECT_HOOK }

Functions

tsapi TSReturnCode TSCacheBufferInfoGet (TSCacheTxn txnp, uint64_t *length, uint64_t *offset)
tsapi TSCacheHttpInfo TSCacheHttpInfoCreate ()
tsapi void TSCacheHttpInfoReqGet (TSCacheHttpInfo infop, TSMBuffer *bufp, TSMLoc *obj)
tsapi void TSCacheHttpInfoRespGet (TSCacheHttpInfo infop, TSMBuffer *bufp, TSMLoc *obj)
tsapi void TSCacheHttpInfoReqSet (TSCacheHttpInfo infop, TSMBuffer bufp, TSMLoc obj)
tsapi void TSCacheHttpInfoRespSet (TSCacheHttpInfo infop, TSMBuffer bufp, TSMLoc obj)
tsapi void TSCacheHttpInfoKeySet (TSCacheHttpInfo infop, TSCacheKey key)
tsapi void TSCacheHttpInfoSizeSet (TSCacheHttpInfo infop, int64_t size)
tsapi int TSCacheHttpInfoVector (TSCacheHttpInfo infop, void *data, int length)
tsapi time_t TSCacheHttpInfoReqSentTimeGet (TSCacheHttpInfo infop)
tsapi time_t TSCacheHttpInfoRespReceivedTimeGet (TSCacheHttpInfo infop)
int64_t TSCacheHttpInfoSizeGet (TSCacheHttpInfo infop)
tsapi int TSMimeHdrFieldEqual (TSMBuffer bufp, TSMLoc hdr_obj, TSMLoc field1, TSMLoc field2)
tsapi TSReturnCode TSHttpTxnHookRegisteredFor (TSHttpTxn txnp, TSHttpHookID id, TSEventFunc funcp)
tsapi TSReturnCode TSHttpTxnCntl (TSHttpTxn txnp, TSHttpCntlType cntl, void *data)
tsapi void TSVConnCacheHttpInfoSet (TSVConn connp, TSCacheHttpInfo infop)
tsapi void TSICPFreshnessFuncSet (TSPluginFreshnessCalcFunc funcp)
tsapi TSReturnCode TSICPCachedReqGet (TSCont contp, TSMBuffer *bufp, TSMLoc *obj)
tsapi TSReturnCode TSICPCachedRespGet (TSCont contp, TSMBuffer *bufp, TSMLoc *obj)
tsapi TSReturnCode TSCacheDataTypeReady (TSCacheDataType type, int *is_ready)
tsapi void TSHttpTxnClientKeepaliveSet (TSHttpTxn txnp, int set)
tsapi void TSHttpTxnServerRequestBodySet (TSHttpTxn txnp, char *buf, int64_t buflength)
tsapi TSReturnCode TSHttpTxnCachedRespTimeGet (TSHttpTxn txnp, time_t *resp_time)
tsapi TSReturnCode TSCacheKeyDataTypeSet (TSCacheKey key, TSCacheDataType type)
tsapi unsigned int TSrandom (void)
tsapi double TSdrandom (void)
tsapi TSHRTime TShrtime (void)
tsapi TSCacheHttpInfo TSCacheHttpInfoCopy (TSCacheHttpInfo infop)
tsapi void TSCacheHttpInfoDestroy (TSCacheHttpInfo infop)
tsapi void TSHttpIcpDynamicSet (int value)
tsapi TSReturnCode TSHttpTxnCacheLookupCountGet (TSHttpTxn txnp, int *lookup_count)
tsapi TSReturnCode TSHttpTxnRedirectRequest (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc url_loc)
tsapi TSReturnCode TSHttpTxnServerRespIgnore (TSHttpTxn txnp)
tsapi TSReturnCode TSHttpTxnShutDown (TSHttpTxn txnp, TSEvent event)
tsapi TSReturnCode TSHttpTxnCloseAfterResponse (TSHttpTxn txnp, int should_close)
tsapi TSReturnCode TSHttpTxnNewCacheLookupDo (TSHttpTxn txnp, TSMBuffer bufp, TSMLoc url_loc)
tsapi TSReturnCode TSHttpTxnSecondUrlTryLock (TSHttpTxn txnp)
tsapi int TSHttpTxnClientReqIsServerStyle (TSHttpTxn txnp)
tsapi void TSHttpTxnOverwriteExpireTime (TSHttpTxn txnp, time_t expire_time)
tsapi TSReturnCode TSHttpTxnUpdateCachedObject (TSHttpTxn txnp)
tsapi int TSHttpTxnLookingUpTypeGet (TSHttpTxn txnp)
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).
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.
tsapi char * TSMatcherReadIntoBuffer (char *file_name, int *file_len)
tsapi char * TSMatcherTokLine (char *buffer, char **last)
tsapi char * TSMatcherExtractIPRange (char *match_str, uint32_t *addr1, uint32_t *addr2)
tsapi TSMatcherLine TSMatcherLineCreate ()
tsapi void TSMatcherLineDestroy (TSMatcherLine ml)
tsapi const char * TSMatcherParseSrcIPConfigLine (char *line, TSMatcherLine ml)
tsapi char * TSMatcherLineName (TSMatcherLine ml, int element)
tsapi char * TSMatcherLineValue (TSMatcherLine ml, int element)
tsapi TSReturnCode TSMgmtConfigIntSet (const char *var_name, TSMgmtInt value)
tsapi int TSAddClusterStatusFunction (TSClusterStatusFunction Status_Function, TSMutex m, TSClusterStatusHandle_t *h)
tsapi int TSDeleteClusterStatusFunction (TSClusterStatusHandle_t *h)
tsapi int TSNodeHandleToIPAddr (TSNodeHandle_t *h, struct in_addr *in)
tsapi void TSGetMyNodeHandle (TSNodeHandle_t *h)
tsapi void TSEnableClusterStatusCallout (TSClusterStatusHandle_t *h)
tsapi int TSAddClusterRPCFunction (TSClusterRPCKey_t k, TSClusterRPCFunction RPC_Function, TSClusterRPCHandle_t *h)
tsapi int TSDeleteClusterRPCFunction (TSClusterRPCHandle_t *h)
tsapi void TSFreeRPCMsg (TSClusterRPCMsg_t *msg, int msg_data_len)
tsapi TSClusterRPCMsg_tTSAllocClusterRPCMsg (TSClusterRPCHandle_t *h, int data_size)
tsapi int TSSendClusterRPC (TSNodeHandle_t *nh, TSClusterRPCMsg_t *msg)
tsapi int TSPrefetchHookSet (int hook_no, TSPrefetchHook hook_fn)
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.
tsapi void TSFetchHeaderAdd (TSFetchSM fetch_sm, const char *name, int name_len, const char *value, int value_len)
tsapi void TSFetchWriteData (TSFetchSM fetch_sm, const void *data, size_t len)
tsapi ssize_t TSFetchReadData (TSFetchSM fetch_sm, void *buf, size_t len)
tsapi void TSFetchLaunch (TSFetchSM fetch_sm)
tsapi void TSFetchDestroy (TSFetchSM fetch_sm)
tsapi void TSFetchUserDataSet (TSFetchSM fetch_sm, void *data)
tsapi void * TSFetchUserDataGet (TSFetchSM fetch_sm)
tsapi TSMBuffer TSFetchRespHdrMBufGet (TSFetchSM fetch_sm)
tsapi TSMLoc TSFetchRespHdrMLocGet (TSFetchSM fetch_sm)

Detailed Description

A brief file description.

License

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 Documentation

#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 Documentation

typedef void(* TSClusterRPCFunction)(TSNodeHandle_t *node, TSClusterRPCMsg_t *msg, int msg_data_len)

Definition at line 418 of file experimental.h.

Definition at line 419 of file experimental.h.

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.

Definition at line 615 of file experimental.h.


Enumeration Type Documentation

Enumerator:
RPC_API_WIRELESS_F01 
RPC_API_WIRELESS_F02 
RPC_API_WIRELESS_F03 
RPC_API_WIRELESS_F04 
RPC_API_WIRELESS_F05 
RPC_API_WIRELESS_F06 
RPC_API_WIRELESS_F07 
RPC_API_WIRELESS_F08 
RPC_API_WIRELESS_F09 
RPC_API_WIRELESS_F10 

Definition at line 404 of file experimental.h.

Enumerator:
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.

Enumerator:
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.

Enumerator:
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.

Enumerator:
NODE_ONLINE 
NODE_OFFLINE 

Definition at line 398 of file experimental.h.

Enumerator:
TS_PREFETCH_UDP_BLAST 
TS_PREFETCH_TCP_BLAST 
TS_PREFETCH_MULTICAST_BLAST 

Definition at line 512 of file experimental.h.

Enumerator:
TS_PREFETCH_PRE_PARSE_HOOK 
TS_PREFETCH_EMBEDDED_URL_HOOK 
TS_PREFETCH_EMBEDDED_OBJECT_HOOK 

Definition at line 543 of file experimental.h.

Enumerator:
TS_PREFETCH_CONTINUE 
TS_PREFETCH_DISCONTINUE 

Definition at line 535 of file experimental.h.

Enumerator:
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.


Function Documentation

tsapi int TSAddClusterRPCFunction ( TSClusterRPCKey_t  k,
TSClusterRPCFunction  RPC_Function,
TSClusterRPCHandle_t h 
)
tsapi int TSAddClusterStatusFunction ( TSClusterStatusFunction  Status_Function,
TSMutex  m,
TSClusterStatusHandle_t h 
)
tsapi TSClusterRPCMsg_t* TSAllocClusterRPCMsg ( TSClusterRPCHandle_t h,
int  data_size 
)
tsapi TSReturnCode TSCacheBufferInfoGet ( TSCacheTxn  txnp,
uint64_t *  length,
uint64_t *  offset 
)
tsapi TSReturnCode TSCacheDataTypeReady ( TSCacheDataType  type,
int *  is_ready 
)
tsapi TSCacheHttpInfo TSCacheHttpInfoCopy ( TSCacheHttpInfo  infop  ) 

Definition at line 4004 of file InkAPI.cc.

tsapi TSCacheHttpInfo TSCacheHttpInfoCreate (  ) 

Definition at line 4103 of file InkAPI.cc.

tsapi void TSCacheHttpInfoDestroy ( TSCacheHttpInfo  infop  ) 

Definition at line 4097 of file InkAPI.cc.

tsapi void TSCacheHttpInfoKeySet ( TSCacheHttpInfo  infop,
TSCacheKey  key 
)

Definition at line 7115 of file InkAPI.cc.

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  ) 

Definition at line 4034 of file InkAPI.cc.

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  ) 

Definition at line 4041 of file InkAPI.cc.

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  ) 

Definition at line 4048 of file InkAPI.cc.

tsapi void TSCacheHttpInfoSizeSet ( TSCacheHttpInfo  infop,
int64_t  size 
)

Definition at line 7125 of file InkAPI.cc.

tsapi int TSCacheHttpInfoVector ( TSCacheHttpInfo  infop,
void *  data,
int  length 
)
tsapi TSReturnCode TSCacheKeyDataTypeSet ( TSCacheKey  key,
TSCacheDataType  type 
)
tsapi int TSDeleteClusterRPCFunction ( TSClusterRPCHandle_t h  ) 
tsapi int TSDeleteClusterStatusFunction ( TSClusterStatusHandle_t h  ) 
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  ) 
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().

tsapi TSMBuffer TSFetchRespHdrMBufGet ( TSFetchSM  fetch_sm  ) 

Definition at line 7371 of file InkAPI.cc.

References sdk_assert, sdk_sanity_check_fetch_sm(), and TS_SUCCESS.

Referenced by SpdyNV::SpdyNV().

tsapi TSMLoc TSFetchRespHdrMLocGet ( TSFetchSM  fetch_sm  ) 

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  ) 
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 
)
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   ) 
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 
)
tsapi TSReturnCode TSHttpTxnCacheLookupCountGet ( TSHttpTxn  txnp,
int *  lookup_count 
)
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  ) 
tsapi TSReturnCode TSHttpTxnCloseAfterResponse ( TSHttpTxn  txnp,
int  should_close 
)
tsapi TSReturnCode TSHttpTxnCntl ( TSHttpTxn  txnp,
TSHttpCntlType  cntl,
void *  data 
)
tsapi TSReturnCode TSHttpTxnHookRegisteredFor ( TSHttpTxn  txnp,
TSHttpHookID  id,
TSEventFunc  funcp 
)
tsapi int TSHttpTxnLookingUpTypeGet ( TSHttpTxn  txnp  ) 
tsapi TSReturnCode TSHttpTxnNewCacheLookupDo ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  url_loc 
)
tsapi void TSHttpTxnOverwriteExpireTime ( TSHttpTxn  txnp,
time_t  expire_time 
)
tsapi TSReturnCode TSHttpTxnRedirectRequest ( TSHttpTxn  txnp,
TSMBuffer  bufp,
TSMLoc  url_loc 
)
tsapi TSReturnCode TSHttpTxnSecondUrlTryLock ( TSHttpTxn  txnp  ) 
tsapi void TSHttpTxnServerRequestBodySet ( TSHttpTxn  txnp,
char *  buf,
int64_t  buflength 
)
tsapi TSReturnCode TSHttpTxnServerRespIgnore ( TSHttpTxn  txnp  ) 
tsapi TSReturnCode TSHttpTxnShutDown ( TSHttpTxn  txnp,
TSEvent  event 
)
tsapi TSReturnCode TSHttpTxnUpdateCachedObject ( TSHttpTxn  txnp  ) 
tsapi TSReturnCode TSICPCachedReqGet ( TSCont  contp,
TSMBuffer bufp,
TSMLoc obj 
)
tsapi TSReturnCode TSICPCachedRespGet ( TSCont  contp,
TSMBuffer bufp,
TSMLoc obj 
)
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 
)
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().

tsapi int TSMimeHdrFieldEqual ( TSMBuffer  bufp,
TSMLoc  hdr_obj,
TSMLoc  field1,
TSMLoc  field2 
)
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.

Returns:
TSAction which allows you to check if the connection is complete, or cancel the attempt to connect.
Parameters:
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 
)
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 
)
tsapi void TSVConnCacheHttpInfoSet ( TSVConn  connp,
TSCacheHttpInfo  infop 
)