mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
more smaller changes
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@38 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
db508491b6
commit
9d9d997dde
2 changed files with 3 additions and 7 deletions
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
|
@ -27,10 +26,9 @@ extern struct config config;
|
|||
int node_create(struct node *n, const char *name, enum node_type type,
|
||||
struct sockaddr_in local, struct sockaddr_in remote)
|
||||
{
|
||||
int ret;
|
||||
|
||||
n->name = name;
|
||||
n->type = type;
|
||||
|
||||
n->local = local;
|
||||
n->remote = remote;
|
||||
|
||||
|
@ -64,10 +62,8 @@ int node_connect(struct node *n)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void node_destroy(struct node* n)
|
||||
int node_disconnect(struct node *n)
|
||||
{
|
||||
assert(n);
|
||||
|
||||
close(n->sd);
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
avg += rtt;
|
||||
|
||||
printf("rtt %.3f min %.3f max %.3f avg %.3f uS\n", 1e-3 * rtt, 1e-3 * rtt_min, 1e-3 * rtt_max, 1e-3 * avg / ++run);
|
||||
info("rtt %.3f min %.3f max %.3f avg %.3f uS\n", 1e-3 * rtt, 1e-3 * rtt_min, 1e-3 * rtt_max, 1e-3 * avg / ++run);
|
||||
|
||||
m1.sequence++;
|
||||
usleep(1000);
|
||||
|
|
Loading…
Add table
Reference in a new issue