It is currently Tue Feb 07, 2012 9:19 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Problem related to socket communication in rhapsody....
PostPosted: Wed Sep 01, 2010 11:21 am 

Joined: Wed Sep 01, 2010 11:14 am
Posts: 1
Problem: My application modules are currently executing on the same
node (on one SBC) and communicating using message queues. In order to
deploy them on different nodes (different processors/different
OS/different SBC's) we wanted to make a communication adaptor which
will make interaction between processes location independent. i.e., if
both processes are running on the same node, then they will
communicate using message queues and if during compilation and code
generation (in rhapsody) i decide to make them run on different nodes,
then i will change the deployment diagram of the components and make 2
separate binaries (exe's) and they will communicate thro TC/IP. The
adaptor component was to be some inbetween (wrapper) class, which will
be used if there needs to be TC/IP comm.
Interestingly, rhapsody does not have direct provision for socket
communication (except for communication between instrumented code and
rhapsody itself..)
Request:
So we were wondering if anybody has typecasted any interface or port
and have made code generation transformation rules, so that, if i use
that port between 2 blocks or components, the code that is generated
by rhapsody is a TCP/IP socket connection between the blocks.

if such a thing does not exist, then we have to continue using the
same procedure of handcoding the socket connection using traditional
C/C++ method code as a function or class and call it , which
effectively, does not bring the power of UML modeling of ports and
interfaces to RPC or broadcast/multicast requirements.

Therefore, can u, pse...
(a) Find out if any such kind of stereotyping / model transformation
exists for socket communication in Rhapsody?
(b) Any material available for integrating socket communication with
other IPC's for this requirement?
Pse DO NOT refer me this reference :
http://www-01.ibm.com/support/docview.w ... wg21398197
(c) Any other suggestion of how to go about implementing such a feature


Offline
 Profile  
 
 Post subject: Re: Problem related to socket communication in rhapsody....
PostPosted: Thu Nov 11, 2010 1:26 am 

Joined: Fri Nov 05, 2010 3:00 pm
Posts: 7
shubhig15

Please forgive me if I am off base here, but I have created two models that communicate to each other via TCP sockets. I setup a TCP server on one and a Client on the other server. I am a hardware guy, so programing this was very difficult, but I was able to pass IP messages from one to the other and and acknowledge. I couldn't figure out how to use the Rhapsody provided communication ports.

Sure hope this helps. If I am on track with what you need, I can post my solution here.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred