ア、ナルほど。

早速サーバー側の
//int deposits = 500;
//int withdrawals = 600;
//msgStruct.dep = htonl(deposits);
//msgStruct.wd = htonl(withdrawals);
の部分コメントアウトしました。で結果は

Received:
totalBytesRcvd: 7
deposits: 100
withdrawals: 200
totalBytesRcvd: 8
deposits: -939523996
withdrawals: 200

この最初の一回は正しいように見えますが
クライアントのローカル変数なんでそのまま表示してる、なんて可能性はありますか?
あと、bit patternというのはどう使うんですか???