#!/usr/bin/expect5.31 -f --

# szerveroldali expect script plug adatatvitel tesztelesehez

set timeout 15
set i 1

global env

exp_version -exit 5.0

spawn nc -l -p $env(GENERIC_SERVER_LISTEN_PORT)
expect "hello" {
 send_user " hello_received_from_client\n"
 send "hello\n"}
for {set i 1} { $i < $env(MAX_MESSAGES_PLUG_NORM_TEST) } {incr i} {
send "msg.$i\n"
}
    
expect timeout {send_user "No Data from Client"}
 


