Re: problem for plugin example: server-transform.c

2011-09-12 Thread steven liu
he port you expect? > > Monday, September 12, 2011, 9:20:26 AM, you wrote: > > > On 3.1 I have to use the ntohs function for the port number when using > > TsNetConnect. Have you tried this? > > > On 12 September 2011 02:33, steven liu wrote: > > >> Thanks

Re: Error for regression testing

2011-09-11 Thread steven liu
It is 32-bit. Tks. On Mon, Sep 12, 2011 at 2:04 AM, Leif Hedstrom wrote: > On 09/11/2011 10:46 AM, steven liu wrote: > >> Hi All, >> >> I am trying to run regression testing in Ubuntu 11.04 for ATS V3.0.0 uisng >> >> /usr/local/trafficserver/bin/**traffic_se

Re: problem for plugin example: server-transform.c

2011-09-11 Thread steven liu
Thanks. Yes. I am setting port using hons() using following codes. struct sockaddr_in ip4addr; ip4addr.sin_family = AF_INET; ip4addr.sin_port = htons(server_port); ip4addr.sin_addr.s_addr = inet_addr((const char *)("127.0.0.1")); action = TSNetConnect(contp, (struct sockaddr const*)&ip4addr);

Error for regression testing

2011-09-11 Thread steven liu
Hi All, I am trying to run regression testing in Ubuntu 11.04 for ATS V3.0.0 uisng /usr/local/trafficserver/bin/traffic_server -R 1 But I have following fatal error: test_http_hdr_print_and_copy FATAL: HdrHeap.cc:610: failed assert `(((uintptr_t) buf) & HDR_PTR_ALIGNMENT_MASK) == 0` Thanks fo

problem for plugin example: server-transform.c

2011-09-11 Thread steven liu
Dear All, I am tring to run a plugin example: server-transform.c under V3.0.0. But I found that it does not work out of the box. Firstly, it cannot be compiled properly due to TSNetConnect(contp, server_ip, server_port); In V3.0.0, the parameter of this function has been changed to TSNetConnect(T

Re: Debug third party API library

2011-09-07 Thread steven liu
to use TSError() or TSDebug() with your own tag > instead. :) > > Thanks, > -Ethan > > > > 2011/9/6 steven liu > >> Dear All, >> >> I am now working on a plugin which calls a third party API library. I am >> able to use TSDebug() in plugin to

Debug third party API library

2011-09-06 Thread steven liu
Dear All, I am now working on a plugin which calls a third party API library. I am able to use TSDebug() in plugin to print out debug infomation. But when I use printf in my API, I cannot get the printing information on screen/terminal. I also tried to open a file in my API and save the debug info