/*
* This file is part of DisOrder.
- * Copyright (C) 2007, 2008 Richard Kettlewell
+ * Copyright (C) 2007-2009 Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
struct sockaddr_in *in = (struct sockaddr_in *)res->ai_addr;
memset(&in->sin_addr, 0, sizeof (struct in_addr));
- if(bind(rtpfd, res->ai_addr, res->ai_addrlen) < 0)
- fatal(errno, "error binding socket to 0.0.0.0 port %d",
- ntohs(in->sin_port));
break;
}
case AF_INET6: {
|| (nsamples > 0
&& contains(pheap_first(&packets), next_timestamp))) {
if(monitor) {
- time_t now = time(0);
+ time_t now = xtime(0);
if(now >= lastlog + 60) {
int offset = nsamples - minbuffer;