next up previous contents
Next: CtoCconnection Up: The Client Previous: The Client   Contents


ContactsDB

Output from the ContactsDB test program.
[client]# ./contactdb 
OurInfo:<UserInfo><EventCount>3 0</EventCount><Name>Nathan Dimmock</Name>
<Port>2001</Port><UserID>101</UserID></UserInfo>

Add User:<contactList>1 </contactList>

test2: <UserInfo><E-Mail>jrr@spurious.org</E-Mail>
<EventCount>3 0</EventCount><Name>J Random</Name><Port>2001</Port>
<UserID>1</UserID></UserInfo>

Exception as expected: UserID not found: 2

delUser: <contactList></contactList>

delUser2: <contactList></contactList>
The final two results are expected as deleteUser() returns the new contact list. In this case they were the only user so the new contact list is of course empty. delUser2 is the attempt to delete the non-existant user which, as can be seen, has no effect.



Nathan Dimmock 2001-06-20