Net Balance: A Network Objects Example

A simple implementation of the canonical bank account example using Modula-3 Network Objects, FormsVBT, Trestle, and Resources.

Quick Start

  1. Fetch the gzipped tar archive of the sources.
  2. Build the server and client by running m3build in each directory.
  3. Make sure you have netobjd running. To run a new one, type "netobjd &".
  4. Run the server. You should see a window displaying "Account Summary".
  5. Run a client, specifying the name of the machine on which the server is running as the client's only command-line argument. You should get a window. Type your name in the top type-in box, and then press "New". You should see a new account on the server window. Edit the amount in the lower type-in and click the "Withdraw" and "Deposit" buttons to perform transactions.
  6. Run two clients at a time. Make requests to the server concurrently.

The Sources


Created By Farshad Nayeri, April 1996
Based on work with Ben Hurwitz some while ago.
Scenario idea based on Iona's Bank account demo in OBJECT magazine a while ago.
I borrowed the terms "Quick Start" and netobjd.1 from Luca's Obliq page.