SmartSockets .NET Class Library

TipcSvc Properties

The properties of the TipcSvc class are listed below. For a complete list of TipcSvc class members, see the TipcSvc Members topic.

Public Static Properties

Srv 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.

See Also

TipcSvc Class | TIBCO.SMARTSOCKETS Namespace


Copyright © TIBCO Software Inc. All rights reserved