~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to proxy/api/ts/InkAPIHughes.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
  This file is created for Prefetch API and is used only by Hughes
26
26
*/
27
27
 
 
28
/// Type of connection.
 
29
typedef enum
 
30
{
 
31
  ILL_BLAST = 0,
 
32
  UDP_BLAST,
 
33
  TCP_BLAST,
 
34
  MULTICAST_BLAST
 
35
} PrefetchBlastType;
 
36
 
 
37
typedef struct {
 
38
  PrefetchBlastType type;
 
39
  IpEndpoint ip;
 
40
} PrefetchBlastData;
 
41
 
28
42
typedef struct
29
43
{
30
44
 
37
51
  TSMLoc response_loc;
38
52
 
39
53
  /*child ip addr in network order */
40
 
  unsigned int client_ip;
 
54
  IpEndpoint client_ip;
41
55
 
42
56
  /*the embedded url parsed by the parser */
43
57
  const char *embedded_url;
55
69
   */
56
70
  int object_buf_status;
57
71
 
58
 
  /*method of sending data to child */
59
 
  unsigned int url_proto;
60
 
  unsigned int url_response_proto;
 
72
  /** Method of sending data to child.
 
73
 
 
74
      If set to @c MULTICAST_BLAST then the corresponding address
 
75
      value must be set to a multicast address to use.
 
76
   */
 
77
  PrefetchBlastData url_blast;
 
78
  PrefetchBlastData url_response_blast;
61
79
 
62
80
} TSPrefetchInfo;
63
81
 
71
89
 
72
90
enum
73
91
{
74
 
  TS_PREFETCH_PROTO_TCP = 1,
75
 
  TS_PREFETCH_PROTO_UDP
76
 
};
77
 
 
78
 
enum
79
 
{
80
92
  TS_PREFETCH_OBJ_BUF_NOT_NEEDED = 0,
81
93
  TS_PREFETCH_OBJ_BUF_NEEDED,  /* The user wants the buffer but does not
82
94
                                   want it to be transmitted to the child */