Dialup server system

From Fernseher
Revision as of 13:03, 7 January 2008 by 129.42.161.36 (talk) (New page: listen on a given port to internal addresses. when a connection is made: *lock the refcountfile *increase the refcount and check to see what the new value is *if the new refcount was 1: *...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

listen on a given port to internal addresses.

when a connection is made:

  • lock the refcountfile
  • increase the refcount and check to see what the new value is
  • if the new refcount was 1:
    • pppup
  • ensure the connection is up
  • unlock the refcountfile
  • in any event, report the status of things over the connection

when a connection is dropped:

  • lock the rcf
  • decrease the refcount and check to see what the new value is
  • if the new refcount was 0:
    • pppdown
  • unlock the rcf