Show
Ignore:
Timestamp:
03/23/09 10:51:58 (15 years ago)
Author:
bhilburn
Message:

Finished migration to functions using private socketFD field rather than
passing around the socketFD by value.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/components.h

    r187 r188  
    3535         * string. 
    3636         */ 
    37         virtual void GetRemoteComponentType(int32_t socketFD) = 0; 
     37        virtual void GetRemoteComponentType() = 0; 
    3838 
    3939 
    4040        /* Wait for a command signal containing task instructions. 
    4141         */ 
    42         virtual void WaitForSignal(int32_t socketFD) = 0; 
     42        virtual void WaitForSignal() = 0; 
    4343 
    4444 
     
    5757        /* Register or deregister a component with the primary radio shell. 
    5858         */ 
    59         virtual void RegisterComponent(int32_t socketFD) = 0; 
    60         virtual void DeregisterComponent(int32_t socketFD) = 0; 
     59        virtual void RegisterComponent() = 0; 
     60        virtual void DeregisterComponent() = 0; 
    6161}; 
    6262 
     
    7676         * service management layer. 
    7777         */ 
    78         virtual void RegisterServices(int32_t socketFD) = 0; 
    79         virtual void DeregisterServices(int32_t socketFD) = 0; 
     78        virtual void RegisterServices() = 0; 
     79        virtual void DeregisterServices() = 0; 
    8080}; 
    8181 
     
    9191        ~ServiceManagementLayer(); 
    9292 
    93         void GetRemoteComponentType(int32_t socketFD); 
    94         void WaitForSignal(int32_t socketFD); 
     93        void GetRemoteComponentType(); 
     94        void WaitForSignal(); 
    9595        void Shutdown(); 
    9696        void Reset(); 
    97         void RegisterComponent(int32_t socketFD); 
    98         void DeregisterComponent(int32_t socketFD); 
     97        void RegisterComponent(); 
     98        void DeregisterComponent(); 
    9999 
    100100    private:  
     
    131131        void ReloadConfiguration(); 
    132132        void LoadConfiguration(); 
     133 
     134 
     135        /* The socket file descriptor information for the shell which this SML 
     136         * is connected to. 
     137         */ 
     138        int32_t socketFD; 
    133139}; 
    134140 
     
    150156                const bool SML); 
    151157 
    152         void GetRemoteComponentType(int32_t socketFD); 
    153         void WaitForSignal(int32_t socketFD); 
     158        void GetRemoteComponentType(); 
     159        void WaitForSignal(); 
    154160        void Shutdown(); 
    155161        void Reset(); 
    156         void RegisterComponent(int32_t socketFD); 
    157         void DeregisterComponent(int32_t socketFD); 
    158  
    159         void RegisterServices(int32_t socketFD); 
    160         void DeregisterServices(int32_t socketFD); 
     162        void RegisterComponent(); 
     163        void DeregisterComponent(); 
     164 
     165        void RegisterServices(); 
     166        void DeregisterServices(); 
    161167 
    162168    private: 
     
    170176         * of transmission parameters. 
    171177         */ 
    172         void SendPEDecision(int32_t socketFD, struct Parameter pList[], \ 
    173                 struct CE_Info *ce_info, int32_t decision_array[]); 
     178        void SendPEDecision(struct Parameter pList[], struct CE_Info *ce_info, \ 
     179                int32_t decision_array[]); 
    174180 
    175181 
     
    199205        ~CognitiveEngine(); 
    200206 
    201         void GetRemoteComponentType(int32_t socketFD); 
    202         void WaitForSignal(int32_t socketFD); 
     207        void GetRemoteComponentType(); 
     208        void WaitForSignal(); 
    203209        void Shutdown(); 
    204210        void Reset(); 
    205         void RegisterComponent(int32_t socketFD); 
    206         void DeregisterComponent(int32_t socketFD); 
    207  
    208         void RegisterServices(int32_t socketFD); 
    209         void DeregisterServices(int32_t socketFD); 
     211        void RegisterComponent(); 
     212        void DeregisterComponent(); 
     213 
     214        void RegisterServices(); 
     215        void DeregisterServices(); 
    210216 
    211217    private: 
     
    213219         * (the CE will not always be local to the radio). 
    214220         */ 
    215         void ReceiveRadioConfiguration(int32_t socketFD); 
     221        void ReceiveRadioConfiguration(); 
    216222 
    217223 
    218224        /* Receive an 'experience' report from the radio. 
    219225         */ 
    220         void ReceiveExperience(int32_t socketFD); 
     226        void ReceiveExperience(); 
    221227 
    222228