Sample output

Sample output

The netcat shell, with the text the user typed in.

nc -l 50001 
The quick brown fox jumps
over the lazy dog. 

The deployer shell, showing the text read in chunks, as well as the updated port and attribute within the component.

deployer-macosx -s ../SimpleNonPeriodicClient.xml -linfo
0.009 [ Info   ][deployer-macosx::main()] No plugins present in /usr/lib/rtt/macosx/plugins
0.009 [ Info   ][DeploymentComponent::loadComponents] Loading '../SimpleNonPeriodicClient.xml'.
0.010 [ Info   ][DeploymentComponent::loadComponents] Validating new configuration...
0.011 [ Info   ][DeploymentComponent::loadLibrary] Storing orocos-rtt
0.011 [ Info   ][DeploymentComponent::loadLibrary] Loaded shared library 'liborocos-rtt-macosx.dylib'
0.054 [ Info   ][DeploymentComponent::loadLibrary] Loaded multi component library 'libSimpleNonPeriodicClient.dylib'
0.054 [ Warning][DeploymentComponent::loadLibrary] Component type name SimpleNonPeriodicClient already used: overriding.
0.054 [ Info   ][DeploymentComponent::loadLibrary] Loaded component type 'SimpleNonPeriodicClient'
0.055 [ Info   ][DeploymentComponent::loadLibrary] Storing SimpleNonPeriodicClient
0.058 [ Info   ][DeploymentComponent::loadComponent] Adding SimpleNonPeriodicClient as new peer:  OK.
0.058 [ Warning][SingleThread] Forcing priority (0) of thread to 0.
0.058 [ Info   ][NonPeriodicActivity] SingleThread created with priority 0 and period 0.
0.058 [ Info   ][NonPeriodicActivity] Scheduler type was set to `4'.
0.059 [ Info   ][PropertyLoader:configure] Configuring TaskContext 'SimpleNonPeriodicClient' with '../SimpleNonPeriodicClient.cpf'.
0.059 [ Info   ][DeploymentComponent::configureComponents] Configured Properties of SimpleNonPeriodicClient from ../SimpleNonPeriodicClient.cpf
0.059 [ Info   ][DeploymentComponent::configureComponents] Re-setting activity of SimpleNonPeriodicClient
0.059 [ Info   ][DeploymentComponent::configureComponents] Configuration successful.
0.060 [ Info   ][DeploymentComponent::startComponents] Connecting to 127.0.0.1:50001
0.064 [ Info   ][DeploymentComponent::startComponents] Connected
0.065 [ Info   ][DeploymentComponent::startComponents] Startup successful.
0.065 [ Info   ][deployer-macosx::main()] Successfully loaded, configured and started components from ../SimpleNonPeriodicClient.xml
   Switched to : Deployer
0.066 [ Info   ][SimpleNonPeriodicClient] Entering Task Deployer
 
  This console reader allows you to browse and manipulate TaskContexts.
  You can type in a command, event, method, expression or change variables.
  (type 'help' for instructions)
    TAB completion and HISTORY is available ('bash' like)
 
 In Task Deployer[S]. (Status of last Command : none )
 (type 'ls' for context info) :4.816 [ Info   ][SimpleNonPeriodicClient] Got 10 bytes : 'The quick '
4.816 [ Info   ][SimpleNonPeriodicClient] Got 10 bytes : 'brown fox '
7.448 [ Info   ][SimpleNonPeriodicClient] Got 10 bytes : 'jumps
over'
7.448 [ Info   ][SimpleNonPeriodicClient] Got 10 bytes : ' the lazy '
12.448 [ ERROR  ][SimpleNonPeriodicClient] Error waiting for data: 5, Network operation timed out. Num bytes = 5
12.448 [ ERROR  ][SimpleNonPeriodicClient] Disconnecting
 
 
 In Task Deployer[S]. (Status of last Command : none )
 (type 'ls' for context info) :ls SimpleNonPeriodicClient
 
 Listing TaskContext SimpleNonPeriodicClient :
 
 Configuration Properties: 
     string HostName       = 127.0.0.1            (Name to listen for incoming connections on (FQDN or IPv4))
        int HostPort       = 50001                (Port to listen on (1024-65535 inclusive))
        int ConnectionTimeout = 5                    (Timeout in seconds, when waiting for connection)
        int ReadTimeout    = 5                    (Timeout in seconds, when waiting for read)
 
 Execution Interface:
  Attributes   : 
        int countRead      = 4                   
 
  Methods      : activate cleanup configure error getErrorCount getPeriod getWarningCount inFatalError inRunTimeError inRunTimeWarning isActive isConfigured isRunning resetError start stop trigger update warning 
  Commands     : (none)
  Events       : (none)
 
 Data Flow Ports: 
  W(U)      string lastRead       =  the lazy 
 
 Task Objects: 
  this           ( The interface of this TaskContext. ) 
  scripting      ( Access to the Scripting interface. Use this object in order to load or query programs or state machines. ) 
  engine         ( Access to the Execution Engine. Use this object in order to address programs or state machines which may or may not be loaded. ) 
  marshalling    ( Read and write Properties to a file. ) 
  lastRead       ( (No description set for this Port) ) 
 
 Peers        : (none)
 
 In Task Deployer[S]. (Status of last Command : none )
 (type 'ls' for context info) :quit
 
18.089 [ Info   ][DeploymentComponent::stopComponents] Stopped SimpleNonPeriodicClient
18.089 [ Info   ][DeploymentComponent::cleanupComponents] Cleaned up SimpleNonPeriodicClient
18.090 [ Info   ][DeploymentComponent::startComponents] Disconnected and destroyed SimpleNonPeriodicClient
18.090 [ Info   ][DeploymentComponent::startComponents] Kick-out successful.
18.091 [ Info   ][Logger] Orocos Logging Deactivated.