Re: How to control a background job

Kenneth Porter <[email protected]>
Newsgroups gmane.network.bit-torrent.general
Message-ID <3A47800FE9B90012333F90B3@[10.0.0.4]>
--On Wednesday, January 12, 2005 10:19 AM -0500 Bill Cox <[email protected]> 
wrote:

> I could support a telnet port, and get access to a command line interface
> that way.  I could support a ssh connection directly to btslave.

You could go raw TCP (you don't need full telnet). Instead of ssh, allow 
binding the TCP port to a specific interface, so the user can bind to 
127.0.0.1, and then you can use a regular ssh client to tunnel to it. Also 
consider a Unix socket (or for Win32, a named pipe).

Both of these give you a raw byte stream over which you can send a simple 
command stream.

> I could provide an http interface, the way swat does.  That's a lot of
> work.

Depends on how fancy you get. You don't have to implement a fancy graphical 
system. Unreal Tournament (the game) has a pretty nice web admin interface 
that's not that big a chunk of code. Embedded web servers can be pretty 
tiny. The hardest part is probably the URL parser, and if you've already 
got to write a command parser, you're most of the way there.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.