transfer binary struct through TCP