if you will add message.WriteTo(ofs_); after this line you will don't need to use success variable