From f58a0b3a1f657124076b96ba092e1f69e88af263 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 18 Jun 2007 20:25:50 +0000 Subject: Added the atom class and did some more client work, it will close the socket now when the end has been reached. --- src/tests/atom.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/tests/atom.cpp (limited to 'src/tests') diff --git a/src/tests/atom.cpp b/src/tests/atom.cpp new file mode 100644 index 0000000..cf076b1 --- /dev/null +++ b/src/tests/atom.cpp @@ -0,0 +1,17 @@ +#include "bu/atom.h" +#include +#include + +int main() +{ + Bu::Atom aInt; + Bu::Atom aStr; + + aStr.set("Hey there, dude"); + aInt.set( 55 ); + int me = aInt; + aInt = 12; + printf("%d, %d\n", aInt.get(), me ); + printf("%s\n", aStr.get() ); +} + -- cgit v1.2.3