interface/httplink.c
char *httplink_recv(httplink_t *connection, char *recvbuf) {
  int n;
  if (recvbuf == NULL) {
    recvbuf = innerbuf;
  }
  n = recv(connection->socket_fd, innerbuf, sizeof(innerbuf) - sizeof(char), 0);
  if (n <= 0) {
    return NULL;
  }
  recvbuf[n] = '\0';
  return recvbuf;
}
/** Try and receive a response from the main server
 *  @param connection
 *    the connection information for the server
 *  @param recvbuf
 *    an optional receiving buffer
 *  @return a message if it is received, otherwise NULL
 */
Try and receive a response from the main server
@param connection
the connection information for the server
@param recvbuf
an optional receiving buffer
@return a message if it is received, otherwise NULL
Try and receive a response from the main server @param connection the connection information for the server @param recvbuf an optional receiving buffer @return a message if it is received otherwise NULL
char *httplink_recv(httplink_t *connection, char *recvbuf) {
  int n;
  if (recvbuf == NULL) {
    recvbuf = innerbuf;
  }
  n = recv(connection->socket_fd, innerbuf, sizeof(innerbuf) - sizeof(char), 0);
  if (n <= 0) {
    return NULL;
  }
  recvbuf[n] = '\0';
  return recvbuf;
}
char * httplink_recv ( httplink_t * connection , char * recvbuf ) { int n ; if ( recvbuf == NULL ) { recvbuf = innerbuf ; } n = recv ( connection -> socket_fd , innerbuf , sizeof ( innerbuf ) - sizeof ( char ) , 0 ) ; if ( n <= 0 ) { return NULL ; } recvbuf [ n ] = ' \0 ' ; return recvbuf ; }
Try and receive a response from the main server
  @param connection
    the connection information for the server
  @param recvbuf
    an optional receiving buffer
  @return a message if it is received, otherwise NULL
Try and receive a response from the main server @param connection the connection information for the server @param recvbuf an optional receiving buffer @return a message if it is received otherwise NULL