EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Routing!?

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#19869
Posted: 04/19/2012 22:53:25
by dzuyba dzuyba (Basic support level)
Joined: 04/19/2012
Posts: 1

In documentation
Code
//Node A code:
MCMessenger messenger;
MCSocketTransport transport;
MCRouter router;
:
transport.setMessenger(messenger);
transport.setTransportMode(stmClient);
:
router.SetRoutingRule("192.168.0.2:12340", "10.1.1.1:4321");
messenger.PostMessage("Socket:192.168.0.2:12340|SampleQueue", ... );
--------------------------------------------------------------------------
//RoutingServer code:
MCMessenger messenger;
MCSocketTransport transport;
:
transport.setMessenger(messenger);
transport.setTransportMode(stmServer);
transport.setRoutingAllowed(true);
---------------------------------------------------------------------------
Node B code:
MCMessenger messenger;
MCSocketTransport transport;
:
transport.setMessenger(messenger);
transport.setTransportMode(stmClient);
:
while (true)
{
    messenger.PostMessage("Socket:10.1.1.1:4321|InvalidQueue" , ...);
    :
}


Does it work?
Code
//Node A code:
MCMessenger messenger;
MCSocketTransport transport;
MCRouter router;
:
transport.setMessenger(messenger);
                    [B]transport.setTransportMode(stmP2P);[/B]
:
router.SetRoutingRule("192.168.0.2:12340", "10.1.1.1:4321");
messenger.PostMessage("Socket:192.168.0.2:12340|SampleQueue", ... );
--------------------------------------------------------------------------
//RoutingServer code:
MCMessenger messenger;
MCSocketTransport transport;
:
transport.setMessenger(messenger);
                      [B]transport.setTransportMode(stmP2P);[/B]
transport.setRoutingAllowed(true);
---------------------------------------------------------------------------
Node B code:
MCMessenger messenger;
MCSocketTransport transport;
:
transport.setMessenger(messenger);
                         [B]transport.setTransportMode(stmP2P);[/B]
:
while (true)
{
    messenger.PostMessage("Socket:10.1.1.1:4321|InvalidQueue" , ...);
    :
}
#19871
Posted: 04/20/2012 02:11:49
by Eugene Mayevski (EldoS Corp.)

Router is available only in licensed version. If you have a license, please assign the license ticket to your user account before we continue. The ticket itself and the procedure of it's use are specified in the registration e-mail that was sent to you upon license purchase.


Sincerely yours
Eugene Mayevski
#19874
Posted: 04/20/2012 03:03:56
by Eugene Mayevski (EldoS Corp.)

1. Never post tickets or license keys to public places. Or add your credit card number to them.

2. You need to add tickets to your user account as described in the registration e-mail.

3. Once you do the above, please rephrase your question so that it becomes more clear. So far I don't understand it. I see at least one error in the code - the router object must be used on the routing server.


Sincerely yours
Eugene Mayevski
#19877
Posted: 04/20/2012 03:27:43
by Vitaliy Volkov (Standard support level)
Joined: 04/20/2012
Posts: 2

Sorry. Volkov = dzuyba
Question.
I use "MCSocketTransport" in mode stmP2P. If i add Routing, do i need separate transport on client and server?
#19878
Posted: 04/20/2012 03:47:57
by Vitaliy Volkov (Standard support level)
Joined: 04/20/2012
Posts: 2

>I see at least one error in the code - the router object must be used on the routing server.
In documentation says - the router object must used on client! Example from documentation

Code
Node A code:

MCMessenger messenger;
MCSocketTransport transport;
MCRouter router;
:
transport.setMessenger(messenger);
transport.setTransportMode(stmClient);
:
router.SetRoutingRule("192.168.0.2:12340", "10.1.1.1:4321");
messenger.PostMessage("Socket:192.168.0.2:12340|SampleQueue", ... );

RoutingServer code:

MCMessenger messenger;
MCSocketTransport transport;
:
transport.setMessenger(messenger);
transport.setTransportMode(stmServer);
transport.setRoutingAllowed(true);

Node B code:

MCMessenger messenger;
MCSocketTransport transport;
:
transport.setMessenger(messenger);
transport.setTransportMode(stmClient);
:
while (true)
{
    messenger.PostMessage("Socket:10.1.1.1:4321|InvalidQueue" , ...);
    :
}
#19897
Posted: 04/21/2012 09:44:17
by Eugene Mayevski (EldoS Corp.)

I am sorry for confusion, I mixed Router with Forwarding.

I've moved your question to the helpdesk for investigation


Sincerely yours
Eugene Mayevski
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 4524 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!