//Send a customObject using a packet of type “CustomObject1” and
// then wait synchronously for the remote end to return a
// CustomObject2 using a packet of type “CustomObject2”
CustomObject2 customObject2 = newConn.SendReceiveObject<CustomObject2>(“CustomObject1”,
“CustomObject2”,
1000,
customObject2);