Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Rugby Question

From: mattsmac:hotmai:l at: 3-Nov-2003 14:13

Sorry, I had to put this problem aside for a minute. Ok Maarten, I followed your advise to keep a running list of the server ports when I connect to them, that makes sense, but I'm still not following how the server can keep track of the clients. Basically I need to do this on the server: alive: does [ client-IP: {get client IP and port from Rugby?} ] or something like that so that and then serve that function. This way the client can call that function periodically to let the server know that it is still running. I need to have the IP for security reasons so I can make sure that the client is coming from the same address every time. If you need any more specifics, let me know. Some code would really help. THanks again, Matt -------------------------------------------------------------------------------- When a server start, it generates "stub" code, code that a client can retrieve and use to connect to a service. So.... get-rugby-service receives this code (essentially a block containing function defs) and you either do them or put them in an object. Now when the stub code is received the client replaces all *http* by the ip address it just used to connect. And when you invoke a function on a get-rugby-service'd retrieved stub it connects back, etc. --Maarten