Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send TCP signal
#1
what do you recommend to use for sending a single TCP packet?

i have setup my fritzbox router to allow waking up computers when a signal on a certain port arrives.

it does work with net, but net is waiting for response.
net("xx.xx.x.xx:5360" "anne" "wol")

should i run it as thread and kill it after some milliseconds?

i only need to send one tcp ping for now.

thanks
pi
#2
Search for TcpSocket in forum or Archive.qml.
#3
did some tests but found not out to tell to disconnect.

please give me a simple example.

connect to server:port
send something tiny
disconnect
pi
#4
Does not disconnect automatically? TcpSocket destructor calls Close, it calls sock_shutdown etc, it should disconnect.
#5
what i need is to tell x.ClientConnect not to wait for anything.
just try ones to connect and end without any error.

#compile "__TcpSocket"
TcpSocket x.ClientConnect("xx.xxx.x.xx" 5032)
pi
#6
Also try function IntCheckConnection.


Forum Jump:


Users browsing this thread: 1 Guest(s)