SmartSockets .NET Class Library

TipcSvc.Srv Property

Gets the global TipcSrv RTserver connection object.

Note: this method will not create a connection to RTserver. Use the create method to do this. The methods to send and receive messages will also automatically connect to RTserver.

Example:

            // get the instance of the connection to the RTserver
            TipcSrv srv = TipcSvc.Srv;
            
            // create a SmartSockets message to publish
            TipcMsg msg = TipcSvc.createMsg(TipcMt.ALERT);
            msg.setDest("/foo");
            msg.appendStr("warning!");
            
            // TipcSrv.send will automatically connect to the RTserver if not already
            srv.send(msg);
            srv.flush();
            

RTserver must be running before a connection is made. The .NET library does not attempt to start an instance of RTserver.

public static TipcSrv Srv {get;}

See Also

TipcSvc Class | TipcSvc Members | TIBCO.SMARTSOCKETS Namespace | TipcSrv


Copyright © TIBCO Software Inc. All rights reserved