A Configuration files for libsdp.conf

Sample configuration files for libsdp.conf:

#libsdp.conf - configuration file for libsdp

#Comments are starts with # and cause the entire line after it to be ignored.

#Any beginning whitespace is skipped. Any line that is empty is also skipped.

#There are 2 main types of statements supported by this configuration file:

#- "use" - which defines the address family to be used for the sockets that

#match the line

#- "log" - for setting logging related configuration. As the log settings

#takes immidiate effect we define these at the beggining of the file.

#

##############################################################################

#DEAFUALT SETTINGS:

#Please do not forget to comment if you want to change these.

#(the rest of this file explains the syntax and give examples)

#Get errors printed into the files /tmp/libsdp.log.

#or /var/adm/<path> for root

log min-level 3 destination file libsdp.log

#

#By default we let all servers and client try SDP first.

#to exclude SDP add "use tcp" rules before these defaults. #use tcp server * *:*

#use sdp server * *:* #use tcp client * *:*

#use sdp server netserver *:* #use tcp server * *:15011-15015 #use sdp client * *:*

#use tcp listen use_both_test *:15000 #use sdp listen use_both_test *:15003 #use both listen use_both_test *:15004 use sdp server * *:*

use sdp client * *:* #use sdp server * *:* #use tcp listen * *:15005

#use both listen use_both_test *:15004

##############################################################################

#LOG CONFIGURATION:

#------------------

#The log directive allows the user to specify which and where debug and error

#messages get sent. The log statement format is:

#log [destination stderrsyslogfile <path>] [min-level <-9>]

#

#destination - defines the destination of the log messages:

#stderr - messages will be forwarded to the stderr

#syslog - messages sent to the syslog service

#file<path> - messages will be written to the file /var/log/<path> for root.

#for regular user, if full path is requsted <path>.<uid>/log

#or /tmp/<path>.<uid>/log if no path is requested

#Due to security reasons, <path> must not be:

#1. a soft link

#2. owned by other user.

#3. Other permissions except User permissions.

#

#min-level - defines the verbosity of the log:

#9 - only errors are printed

#8 - warnings

#7 - connect and listen summary (useful for tracking SDP usage)

#4 - positive match summary (useful for config file debug)

#3 - negative match summary (useful for config file debug)

#2 - function calls and return values

#1 - debug messages

#

# Examples:

14 Configuration files for libsdp.conf