aboutsummaryrefslogtreecommitdiffstats
path: root/src/demo_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'src/demo_client.rb')
-rwxr-xr-xsrc/demo_client.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/demo_client.rb b/src/demo_client.rb
index 40cb1f3..947833f 100755
--- a/src/demo_client.rb
+++ b/src/demo_client.rb
@@ -19,10 +19,10 @@ along with sofSIM. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info
=end
# this programm will create a client which can be used to test servers
-require './sap/client.rb'
-require './lib/apdu.rb'
-require './info_client.rb'
-require './copy_client.rb'
+require_relative 'sap/client'
+require_relative 'lib/apdu'
+require_relative 'info_client'
+require_relative 'copy_client'
#=============
#== default ==
@@ -31,13 +31,13 @@ require './copy_client.rb'
# client use (demo,info,copy)
@type = "demo"
# which IO to use (tcp,unix,bt)
-@socket = "tcp"
+@socket = "unix"
# tcp port
@port = 1337
# tcp host
@host = "localhost"
# unix socket
-@unix = "/tmp/sap.socket"
+@unix = "/tmp/osmocom_sap"
# file were to save the copy
@file = "sim.xml"
# bluetooth rfcomm serial port
@@ -131,7 +131,7 @@ when "bt"
if @bt then
io = SerialPort.new(@bt)
else
- require './tools/bluetooth_sap_serial.rb'
+ require_relative 'tools/bluetooth_sap_serial'
bt = BluetoothSAPSerial.new
# using SerialPort because reading the File does not work (have to find right stty options)
io = SerialPort.new(bt.connect)