Jump to content

A little client server application


Etrai

Recommended Posts

Hi!

I've written a small client/server type application to address an issue I've run in to. I have a VM-server running various machines, and amongst them there is one that is used as sort of a uTorrent server. It runs Windows (for other reasons) and I want to remote control it. I can hear you thinking "why not use the WebUI?". The quick answer is that I do, but it doesn't allow me to do what I want or rather need. What I would like to do is use an "add torrent"-dialog where I can create directories and such from the remote UI, without resorting to remote desktop or the likes. This is, as far as I can tell, not possible with the current WebUI and WebUI API. So, there's the back story.

My solution: build a windows service pair that share an understanding in how things are supposed to look and what goes where. It's quite rudimentary where you configure base folders for your various downloads and simply drop the .torrent files in whatever path. It includes the sub path so you can configure things along the lines of "this is where I keep all my X, but t.torrent is of category Y so I create a sub folder in my base folder on the client machine named Y and the server will sort out the rest for me".

The problem I'm facing is interacting with a uTorrent instance running on the server. I have uTorrent running as a Windows service, which works fine in of itself, but when I attempt to issue command line commands it only spawns new instances of uTorrent instead of adding the torrent to the running instance.

Does this make sense? =) Any ideas on how to get around it?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...