Hi,

I just installed the latest dev version of V3 x64 from ap-i.net. I 
wanted to experiment with the server feature in CdC but it's not 
working. I started with a simple Ruby program:


require 'socket'

class GetObj
    def initialize
        @s = TCPSocket.open('127.0.0.1', 3292)
    end

    def send(cmd)
        @s.puts(cmd+"\x0D\x0A")
        #while line = @s.gets
            #puts line.chop
        #end
    end

    def doit
        send("SETPROJ EQUAT")
    end
end # get obj

g = GetObj.new
g.doit

sleep(10)

The program runs and while it's sleeping I check CdC but it does not 
report any clients. The SETPROJ command does not have any effect either. 
Here are the things I've done:

- enable server in CdC
- add CdC to the allowed programs in the Vista x64 firewall
- connect to localhost/3292 using a telnet client (It connects but CdC 
does not respond nor does it report a client is connected)

Any ideas? I fixed up Patrick's chartlist.pl script a while back so I 
know this used to at least somewhat work.

Looking at the command list here: 
http://www.ap-i.net/skychart/en/documentation/server_commands it seems 
impossible to get a list of currently visible objects. Did I read that 
right? If so that kind of kills my project there but I'd still like this 
to work.

Thanks,

    Sander

Reply via email to