Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I am trying to write a plugin that can send some track info to another process using tcp/ip. Does anyone know how to create/open a socket in a plugin? ...
  1. #1
    Just Joined!
    Join Date
    Aug 2008
    Posts
    17

    opening a tcp/ip socket in a rhythmbox plugin

    Hello,

    I am trying to write a plugin that can send some track info to another process using tcp/ip.

    Does anyone know how to create/open a socket in a plugin? (I am using python for writing the plugin).
    I have seen examples that copy track info to the clipboard (or output it to xml. I have thrown together a py script that sets up a socket and does what I want, but not in the plugin.

    any ideas? thanks,

    Ron

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Probably the easiest way is to go to this web-site and see how they did it

    Downloads - rhythmote - Project Hosting on Google Code

    Just download the zip file(rhythmbox web interface plugin) it contains a python file with socket access..
    Make mine Arch Linux

  3. #3
    Just Joined!
    Join Date
    Aug 2008
    Posts
    17
    Quote Originally Posted by csdude View Post
    Hello,

    I am trying to write a plugin that can send some track info to another process using tcp/ip.

    Does anyone know how to create/open a socket in a plugin? (I am using python for writing the plugin).
    I have seen examples that copy track info to the clipboard (or output it to xml. I have thrown together a py script that sets up a socket and does what I want, but not in the plugin.

    any ideas? thanks,

    Ron
    never mind, already figured it out

  4. #4
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Figured it out in 31 minutes...it must have been a desperate problem..
    Make mine Arch Linux

  5. #5
    Just Joined!
    Join Date
    Aug 2008
    Posts
    17
    Quote Originally Posted by gerard4143 View Post
    Figured it out in 31 minutes...it must have been a desperate problem..
    just one of those where you start pulling out your hair (and than after you post something you figured it out)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...