Thread: Client /server alternatives

  1. #1
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751

    Client /server alternatives

    Hope this isn't a stupid queston.

    I'm coding a program that will allow users to modify the contents of a file on a LAN. I'm wondering if i have to use a client/server architecture in order to allow simultaneous access to the file ex: like a sql database. Or is there another way that i don't know about.

    I ideally just want to wirte the code using AINSI C with the only external piece being the file itself that the users modify. is this doable with more than 2 ppl trying to access it on the same LAN.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    It's doable, but why re-invent the wheel?

    If you want to allow multiple people to work on the same document, it's not going to work. File permissions will not allow it. You're better off writing to a database and then writing the file out from multiple records.

  3. #3
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    Posts
    751
    thanks ober. I guess for the sake of convenience i'll just use the database approach. From a pedantic POV though.
    What is the basic idea behind doing it the other way? or will the nature of files just not accept it?
    Thanks
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to Send Mac Address From Client to Server
    By Lieyza197 in forum C Programming
    Replies: 2
    Last Post: 05-27-2009, 09:58 AM
  2. Socket Programming Problem!!!!
    By bobthebullet990 in forum Networking/Device Communication
    Replies: 2
    Last Post: 02-21-2008, 07:36 PM
  3. WSAAsyncSelect Socket Model. She's Not Hot.
    By Tonto in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-24-2007, 08:34 AM
  4. Client works on a LAN but don't send all the data
    By Niara in forum Networking/Device Communication
    Replies: 9
    Last Post: 01-04-2007, 04:44 PM
  5. Replies: 1
    Last Post: 09-18-2005, 09:06 PM