Re: g_io_channel_add_watch
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Harring Figueiredo <harringf yahoo com>
- Cc: gtk_list gtk gtk <gtk-app-devel-list gnome org>
- Subject: Re: g_io_channel_add_watch
- Date: Thu, 19 Sep 2002 12:19:09 -0400
I _really_ don't get it. why do 
Inter Process Communication with a
regular file !?
why not a network protocoll ?
man connect(), recv(), socket(),
        accept(), bind() ... 
you must have some of this stuff in
a Win environment.
    -Tristan
Harring Figueiredo wrote:
 Thanks for the reply --
 I need to communicate with a proprietary software through this file --
 Locking is done on both sides -- I guess I am going to do the "smartest"
pulling there is:)
   while(file locked)
   {
       sleep(1);
       if(tries > 10 ) break; /* could not open the file for now -- come back
later. */
    }
 I can't think of any alternatives --
Harring
--- Tristan Van Berkom <vantr touchtunes com> wrote:
      An IO channel needs an open file descritpor.
How do you manage that in windows ? I assume you need to
use a socket instead of a named pipe. (I'm guessing
you need a simple IPC). I'm absolutly clueless in
the Win environmentbut I know that g_io_channel_add_watch
needs to have an open file descriptor if its ever going
to perform select() poll() or whatever it does.
Good luck!
      -Tristan
Harring Figueiredo wrote:
Folks,
 I am writting an app on Linux to run on Win.
 On Win, once we open a file, it is locked, so other proc are automatically
blocked from  opening that file.
  I want to add a watch (g_io_chanel_add_watch) to a regular file on
windows.
Will this cause the file to remain open while the watch is active ? Can the
other process(es) still open the file?
 Anyone with experience on that ?
 Thanks.
 I have not tested, because I still don;t have the Win machine... Thanks !!
Harring.
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]