Navigation


Changeset 649:5e5d8152c229 in freeDiameter for libfreeDiameter/messages.c


Ignore:
Timestamp:
Jan 5, 2011, 5:13:34 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Implemented fd_msg_send_timeout to close #10. Not tested yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfreeDiameter/messages.c

    r648 r649  
    919919        if (timeout) {
    920920                memcpy(&msg->msg_cb.timeout, timeout, sizeof(struct timespec));
    921         } else {
    922                 memset(&msg->msg_cb.timeout, 0, sizeof(struct timespec)); /* clear the area */
    923921        }
    924922       
     
    938936       
    939937        return 0;
    940 }       
     938}
     939
     940struct timespec *fd_msg_anscb_gettimeout( struct msg * msg )
     941{
     942        TRACE_ENTRY("%p", msg);
     943       
     944        /* Check the parameters */
     945        CHECK_PARAMS_DO( CHECK_MSG(msg), return NULL );
     946       
     947        if (!msg->msg_cb.timeout.tv_sec) {
     948                return NULL;
     949        }
     950       
     951        return &msg->msg_cb.timeout;
     952}
    941953
    942954/* Associate routing lists */
Note: See TracChangeset for help on using the changeset viewer.