Logo AND Algorithmique Numérique Distribuée

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