[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a little progress on control software




I've got the code at work to do the socket stuff.
I've packaged it up nicer.  Same code.
It is in the form of a library that can be called from "C".
Remind me I'll send it to you.  I've even written some
documentation too

Your code that listens for a connection shouldn't care
about what computer the client runs on.  The client will
need to specify the correct machine. When you server
binds the socket it does need to be an "IP" socket. 
"UNIX Domain" sockets are only on the one machine. 


Stupendous Man wrote:
> 
>   I've taken Chris A.'s socket software and shoe-horned it into the
> "tait" control program.  The main program can now accept input from
> either
>             - the keyboard (default)
>             - a text file
>             - a socket
> 
>   I've also written a small "client" program, which simply opens
> a connection to the main program's waiting socket, sends a command,
> and quits.  Nothing sophisticated.
> 
>   The point is that I can now use any scripting language to act as
> a front end to the camera.  Just now, for example, I used TCL to
> perform a loop 10 times:
> 
>              - check the camera ADC values (such as temperature, etc.)
>              - sleep for 60 seconds
> 
>   I can now run long strings of diagnostic commands -- watching temperature
> change over a night, or taking a set of 50 darks, or something like that --
> without having to sit at the keyboard and type each one by hand.
> 
>   Again, nothing earth-shattering, but a small step forward.  This facility
> will be more useful with some sort of a "command shell", or friendly
> GUI.  Oh, and documentation :-)
> 
>   Anyone who wants to send me tips or suggestions on arranging
> a means by which a socket on the "control computer" can listen for
> commands from _other_ computers, please do.  I've verified that a
> simple telnet connection will do the trick -- but, of course, I don't
> want to set up a computer to accept all incoming telnet packets.
> If you can tell me how to modify my /etc/services or other files
> to do this in a secure fashion, I'd appreciate it.  I'd also appreciate
> advice from people who say, "It can't be made secure -- don't bother."
> 
>                                           Michael Richmond

-- 

--
   Chris Albertson             
   Redondo Beach, California
   home:   310-376-1029   chrisalbertson90278@yahoo.com
   cell:   310-990-7550
   office: 310-336-5189   Christopher.J.Albertson@aero.org