update network examples to compile

The examples in the network-conduit don't compile with the current version.  I have updated them so they appear to run correctly, so I think I have done the correct changes.