Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
eeb095c5960ff9610a518c255ec98b0d7cbaddd4
[simgrid.git] / examples / gras / ping / ping_common.c
1 /* $Id$ */
2
3 /* ping - ping/pong demo of GRAS features                                   */
4
5 /* Copyright (c) 2003, 2004, 2005 Martin Quinson. All rights reserved.      */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #include "ping.h"
11 XBT_LOG_NEW_DEFAULT_CATEGORY(Ping,"Messages specific to this example");
12
13 /* register messages which may be sent (common to client and server) */
14 void ping_register_messages(void) {
15   gras_msgtype_declare("ping", gras_datadesc_by_name("int"));
16   gras_msgtype_declare("pong", gras_datadesc_by_name("int"));
17   INFO0("Messages registered");
18 }
19