TCP Binding receive problem

Could you please paste the code in code fences? there are some quotation marks in it, and discourse keeps changing

'this' and "that"

to

’this’ and “that”

so there is no way to decide whether your code is correct or not.