Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

SOFIAPUBFUN http_date_t* http_date_create ( su_home_t home,
http_time_t  date 

Create an Date header object.

The function http_date_create() creates a Date header object with the date date. If

is 0, current time (as returned by msg_now()) is used.
homememory home
datedate expressed as seconds since Mon, 01 Jan 1900 00:00:00
The function http_date_create() returns a pointer to newly created Date header object when successful, or NULL upon an error.

Definition at line 584 of file http_basic.c.

References http_date_s::d_time.

  http_date_t *d = (void *)msg_header_alloc(home, http_date_class, 0);

  if (d) {
    if (date == 0)
      date = msg_now();
    d->d_time = date;

  return d;

Generated by  Doxygen 1.6.0   Back to index