18.09.2023, 09:23
(This post was last modified: 18.09.2023, 09:24 by savaskorkmaz.)
Hi,
Our customer has a software. This software is sending some informations to 4033 port of our Logic Machine. For logging , i write such as code but all i got is 'Nil' value. Can you check my code please or any suggestion ?
require('socket')
ip = 'localhost'
sock = socket.tcp()
sock : settimeout(3)
res, err = sock:connect(ip, 4003)
log(res)
sock:close()
Our customer has a software. This software is sending some informations to 4033 port of our Logic Machine. For logging , i write such as code but all i got is 'Nil' value. Can you check my code please or any suggestion ?
require('socket')
ip = 'localhost'
sock = socket.tcp()
sock : settimeout(3)
res, err = sock:connect(ip, 4003)
log(res)
sock:close()