Being a relatively new to mozart, I have some ideas about (1).
Guru's may have better way.

(a) more involved but more general (and perhaps a bit overkilled for your
    case)
    P2PS --> one can send message between server and client(s).
             e.g. your server can wait for file_ready message from
                  your client before opening that file.

(b) using logic variable.

    Client-side
    define a variable File_ready
    proc {Create_info_txt Args} {processes..} File_ready=unit end

    then, make a ticket for File_ready
    {Pickle.save File_ready ticket_file}

    Server-side
    read-in the File_ready reference from the ticket file
    then your code can {Wait File_ready} before proceeding.

(c) If the Server has to wait,
    how about checking if the file exists,
    if not wait...

------------------------------

As for (2),  I have not tried the following myself. Just a thought that
flashes across my mind now.

Create a functor on the Client side.
In the functor, create your local file accessing proc.
Make this functor available at remote site by first creating a tickefile.

On the remote-site,
read-in the functor reference from the tickfile.


--hp



On Tue, 3 Apr 2007, Lavanya r wrote:
> ---------- Forwarded message ----------
> From: Lavanya r <[EMAIL PROTECTED]>
> Date: Mar 27, 2007 12:08 PM
>
>  1.           I have encountered a problem in blocking a certain process in
> the server until the client generates a file.
> For Example, in the command  I={New Open.file init(name:'www.dcserv/info.txt'
> flags:[read])}, the file ' info.txt' is made available only by the client
> code. As the server has to be run first,should it be suspended for a while
> till the client runs? What command must be used for enabling this?Please
> help me out with this.
>
> 2.          Also, please suggest the method to transfer files from client to
> server in distributed programming. Files from server can be made available
> global using URLs. But how can files on client be accessed by server? Is
> there a folder in client available to the server?
>
>                                      Awaiting early response
>
>                                            Thanking you
>
>
> Regards
> -Lavanya Raghunath
>
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to