Results 1 to 16 of 16

Thread: C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128

    C++

    ++ . ?

  2. #2
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    . , , -, , ..
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  3. #3
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ?

  4. #4
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    . ,

    , /, dependency injection , shared memory, sockets, 0mq , .

  5. #5
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    -? shared memory ?

  6. #6
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432
    Quote Originally Posted by Red_Leader View Post
    -? shared memory ?
    ? M thread . framework ? .
    .

  7. #7
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    boost

    ?

  8. #8
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Boost , . ... . , .
    , !

  9. #9
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    . , , ..

    , .

  10. #10
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    XML 200 . :
    XML
    .
    .
    . .

  11. #11
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ?
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  12. #12
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    Linux

  13. #13
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    . .


    Code:
    /*
    * First process
    */
    
    #include <boost/interprocess/ipc/message_queue.hpp>
    #include <iostream>
    #include <vector>
    
    using namespace boost::interprocess;
    
    int main ()
    {
       try{
          //Erase previous message queue
          message_queue::remove("message_queue");
    
          //Create a message_queue.
          message_queue mq
             (create_only               //only create
             ,"message_queue"           //name
             ,100                       //max message number
             ,sizeof(int)               //max message size
             );
    
          //Send varible
          int varible = 11;
    		//varible - massage, sizeof(varible) - lenght of the message, 0 - priority
             mq.send(&varible, sizeof(varible), 0);
         
       }
       catch(interprocess_exception &ex){
          std::cout << ex.what() << std::endl;
          return 1;
       }
    
       return 0;
    }
    
    
    /*
    * Second Process
    */
    
    #include <boost/interprocess/ipc/message_queue.hpp>
    #include <iostream>
    #include <vector>
    
    using namespace boost::interprocess;
    
    int main ()
    {
       try{
          //Open a message queue.
          message_queue mq
             (open_only        //only create
             ,"message_queue"  //name
             );
    
          unsigned int priority;
          std::size_t recvd_size;
    
          //Receive varible   
             int varible;
             mq.receive(&varible, sizeof(varible), recvd_size, priority);
             
         
       }
       catch(interprocess_exception &ex){
          message_queue::remove("message_queue");
          std::cout << ex.what() << std::endl;
          return 1;
       }
       message_queue::remove("message_queue");
       return 0;
    }
    boost .

  14. #14
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    , ?
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  15. #15
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    shared memory, messages .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |