Author Topic: creating a tcp connection on a plugin  (Read 5854 times)

chokito76

  • Newbie
  • *
  • Posts: 4
    • View Profile
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?

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
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