Task #119

communication.c: work on recv_autoenable()

Added by Andreas Schröder about 8 years ago.

Status:NewStart date:06/02/2010
Priority:NormalDue date:
Assignee:-% Done:


Target version:0.64.5


int recv_autoenable (int sfd, struct autoenable *ae) {

  // FIXME: check size
  if (!dr_read(sfd,(char*)ae,sizeof(struct autoenable))) {
    return 0;

  /* Now we should have the autoenable info with the values in */
  /* network byte order, so we put them in host byte order */
  ae->last = ntohl (ae->last);

  return 1;

Also available in: Atom PDF