Thread: fopen+network

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    36

    fopen+network

    how can i open a file across the network....the file is a text file in one computer(server)and i am developing some program to access it from another(client)....i have done all the socket operation ...i just need the logic to open the file using C programming in linux

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    Why don't you just have the server open the file and send you its content ?

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    36
    the things is am making a simple email client and server program ....i just need a way for the client to access the mail (which will be in the server side )using the client side program...transfering the message from server in form of packets everytime will slow the thing down won't it

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > transfering the message from server in form of packets everytime will slow the thing down won't it
    What do you imagine your network fgets() is going to do?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Mar 2005
    Posts
    37
    why don't you maintain a replica on the client side too ?
    Once a new mail comes in. its transfered over to Client where it stays. even when the network is disconnected.
    Just like your outlook.

  6. #6
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Are you trying to avoid standard email access protocols such as IMAP and POP3?
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with stat() and fopen()
    By movl0x1 in forum C Programming
    Replies: 6
    Last Post: 07-25-2007, 05:28 AM
  2. 3D Network Analysis Tool
    By durban in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 11-08-2005, 06:33 PM
  3. Need help with easy Network setup
    By the dead tree in forum Tech Board
    Replies: 9
    Last Post: 04-08-2005, 07:44 PM
  4. network problems
    By lucy in forum Tech Board
    Replies: 6
    Last Post: 01-01-2003, 03:33 PM
  5. WinXP Network Connections pop-up
    By DavidP in forum Tech Board
    Replies: 1
    Last Post: 10-02-2002, 05:36 PM