Zurück zu Willert.de

Socket implementation using OMOSSocket

For questions around OS environment, the OXF or RTOS Adapter Layer

Socket implementation using OMOSSocket

Postby mhdeshmukh » July 5th, 2010, 11:49 am

Hello
I am trying to model UDP communication between the processes using Rhapsody.
Does anyone has done it using OMOSSocket class?

I am trying to inherit OMOSSOcket class in my use defined class in order to implement socket but getting error as:

error C2504: 'OMOSSocket': Basisklasse undefiniert
NMAKE : fatal error U1077: ""C:\Programme\Microsoft Visual Studio 8\VC\BIN\cl.EXE"": Rückgabe-Code "0x2"
Stop.


please help
mhdeshmukh
 
Posts: 4
Joined: July 5th, 2010, 11:43 am

Re: Socket implementation using OMOSSocket

Postby oakdemir » July 5th, 2010, 12:39 pm

Error indicates that base class is not defined. So the first step is to make sure if your project properly includes the os.h file, which is normally located under the directory \IBM\Rational\Rhapsody\7.5.1\Share\LangCpp\oxf.

Please inform about the progress.

Özgür Eser Akdemir
oakdemir
 
Posts: 141
Joined: June 24th, 2008, 8:18 pm
Location: Ankara

Re: Socket implementation using OMOSSocket

Postby mhdeshmukh » July 5th, 2010, 1:36 pm

thanks for the reply. I have already included os.h
do I need to set any property in CPP_CG?
could you explain how to inherit from any oxf class?
mhdeshmukh
 
Posts: 4
Joined: July 5th, 2010, 11:43 am

Re: Socket implementation using OMOSSocket

Postby rliscano » February 9th, 2012, 5:42 pm

How do you specify the location of ntos.h or os.h? I keep getting undefined type OMOSSocket
rliscano
 
Posts: 2
Joined: March 17th, 2011, 4:16 am

Re: Socket implementation using OMOSSocket

Postby Farquad » February 10th, 2012, 1:33 am

The OMOSSocket is a TCP socket. It is used by the OMOSConnectionPort which is specifically set up for animation.

The factory in os.h does not provide a create for an OMOSSocket but does provide createOMOSConnectionPort. This then has a further dependency on OMSData which looks like it is in omcom.

Suggest you implement your own factory for UDP connections. Is the problem that you don't know how to code that?
Farquad
 
Posts: 407
Joined: September 13th, 2007, 9:34 pm
Location: London

Re: Socket implementation using OMOSSocket

Postby pran@TUE » September 18th, 2017, 4:09 pm

I have included the following header files:

"stdio.h","winsock2.h","osesocket.h","string.h","sys/types.h","ntos.h"

in spite of including these header files, it says undeclared identifier omossocket. I am using IBM Rhapsody 8.1.5 and visual studio 14

I am replying to a very old post. Any solutions yet?
pran@TUE
 
Posts: 1
Joined: September 18th, 2017, 3:37 pm

Re: Socket implementation using OMOSSocket

Postby wvdheiden » October 25th, 2017, 12:35 pm

Hi

The OMOSsocket classes are mainly there to be used for the Animation feature of Rhapsody. If you switch on Animation in your Configuration these classes will be added (by adding a library)
I assume that switching on Animation will solve tour problem (but create others as soon as you try to run your application)
Try adding the MSVC10x64aomanim.lib library to your linker command line. The libraries are located in [OMROOT]/LangCPP/lib

regards

Walter
===============================================
Who is General Failure and why is he reading my drive?
User avatar
wvdheiden
 
Posts: 50
Joined: October 5th, 2007, 10:31 am
Location: Hellendoorn, the Netherlands
Company: Willert Software Tools GmbH


Return to Framework

Who is online

Users browsing this forum: No registered users and 1 guest

cron