]> rtime.felk.cvut.cz Git - orte.git/blob - orte/liborte/RTPSInfoDST.c
updated email address - petr@smoliku.cz
[orte.git] / orte / liborte / RTPSInfoDST.c
1 /*
2  *  $Id: RTPSInfoDST.c,v 0.0.0.1        2003/08/21
3  *
4  *  DEBUG:  section 42                  message INFO DST
5  *
6  *  -------------------------------------------------------------------  
7  *                                ORTE                                 
8  *                      Open Real-Time Ethernet                       
9  *                                                                    
10  *                      Copyright (C) 2001-2006                       
11  *  Department of Control Engineering FEE CTU Prague, Czech Republic  
12  *                      http://dce.felk.cvut.cz                       
13  *                      http://www.ocera.org                          
14  *                                                                    
15  *  Author:              Petr Smolik    petr@smoliku.cz             
16  *  Advisor:             Pavel Pisa                                   
17  *  Project Responsible: Zdenek Hanzalek                              
18  *  --------------------------------------------------------------------
19  *
20  *  This program is free software; you can redistribute it and/or modify
21  *  it under the terms of the GNU General Public License as published by
22  *  the Free Software Foundation; either version 2 of the License, or
23  *  (at your option) any later version.
24  *  
25  *  This program is distributed in the hope that it will be useful,
26  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
27  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28  *  GNU General Public License for more details.
29  *  
30  */ 
31
32 #include "orte_all.h"
33
34 /**********************************************************************************/
35 void RTPSInfoDST(CDR_Codec *cdrCodec,MessageInterpret *mi) {
36   CDR_Endianness     data_endian;
37   HostId             hid;
38   AppId              aid;
39
40   data_endian=cdrCodec->data_endian;
41   cdrCodec->data_endian=FLAG_BIG_ENDIAN;
42
43   /* Host Id */
44   CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&hid);
45
46   /* App Id */
47   CDR_get_ulong(cdrCodec, (CORBA_unsigned_long *)&aid);
48
49   cdrCodec->data_endian=data_endian;
50
51   debug(42,3) ("  RTPSInfoDST:\n");
52   debug(42,4) ("    hid:0x%x, aid:0x%x\n",hid,aid);
53
54   if (hid!=HID_UNKNOWN) {
55     mi->destHostId=hid;
56   }
57   if (aid!=AID_UNKNOWN) {
58     mi->destAppId=aid;
59   }
60 }
61
62