Server connection description files

The library supports an option to load a simple text file with connection description information in it in order to configure the RSTP client or server. This page provides an example server configuration and explains how to use this feature. Note that the file is just a list of directives grouped into blocks saved as ASCII text.

An Example

Comment {
This is a sample RSTP configuration file. Everything is case sensitive. 
Whitespace is ignored. Otherwise, it's self-explanatory.
}

Server {
  Listen 0.0.0.0
  Port 10001
  Backlog 10
  MaxClients 2

  PassStream ALL
  FilterStream FLT /etc/radar/filterfile.txt
  PipeThrough FLT /etc/radar/pipeflt.sh
  
  Auth {
    testlogin  testpass { ALL }
    testlogin2 testpass2 { JUNK }
  }
  LoadAuthFile /etc/radar/authfile.txt { ALL FLT }
  
  Logging rstpserver /var/log/rstpserver.log 3
  StatusFile /var/log/rstpstatus.txt
}
   

Directive Descriptions

All directives are case sensitive!

See also:
libradar_stp::Filter for filter file documentation.

Discussion

The only mandatory elements of the Server block are Listen, Port, and at least one stream definition. The simplest stream definition is a PassStream. Most users will also want to use the authentication feature. It is important to note that authentication credentials are stored in clear text and are transmitted in clear text over the communication channel, so sensitive passwords are not appropriate for this use.

It is especially important to note that everything in a connection description file is case sensitive. The library uses a very simple parsing scheme, so format your files correctly!
Generated on Tue Jul 1 20:25:26 2008 for libradar_stp by  doxygen 1.4.7