Home
Help
Search
Login
Register
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
creating a tcp connection on a plugin
« previous
next »
Print
Pages: [
1
]
Author
Topic: creating a tcp connection on a plugin (Read 15184 times)
chokito76
Newbie
Posts: 4
creating a tcp connection on a plugin
«
on:
August 30, 2014, 08:01:46 PM »
Hi, is it possible to create a plugin that connects to a TCP server open on the same computer attract-mode is running to send information like rom list swaps and games loaded?
Logged
raygun
Administrator
Sr. Member
Posts: 393
Re: creating a tcp connection on a plugin
«
Reply #1 on:
August 31, 2014, 07:20:45 AM »
Hi, you should be able to do this using the squirrel 'system' function in your script to run netcat:
http://en.m.wikipedia.org/wiki/Netcat
system function doc:
http://www.squirrel-lang.org/doc/sqstdlib3.html#d0e1938
Logged
Print
Pages: [
1
]
« previous
next »
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
creating a tcp connection on a plugin