00001 #include "net.H" 00002 00003 int 00004 main() 00005 { 00006 NetStream n1("/tmp/x", NetStream::write); 00007 NetStream n2("/tmp/x", NetStream::read); 00008 00009 n1 << 3 << str_ptr("hello") << 5 << NETflush; 00010 00011 int x; str_ptr y; int z; 00012 n2 >> x >> y >> z; 00013 00014 cerr << x << y << z << endl; 00015 00016 return 0; 00017 }