Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: chokito76 on August 30, 2014, 08:01:46 PM

Title: creating a tcp connection on a plugin
Post by: chokito76 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?
Title: Re: creating a tcp connection on a plugin
Post by: raygun 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