Closed dingiso closed 3 years ago
I'm considering that there maybe some problems , the parameter is not necessary , tcp first bind and connect with a endpoint which ensure the data transfer to the endpoint
That's why the endpoint parameter is not used. It is saved in socket. The endpoint is here because the trait requires it, and UDP uses that.
Thank you , I understand it !!
I think there are something wrong within the fn
write
in the TcpSocketState, Code below:Withourt using the second parameter
_sendto_endpoint
I'm considering that there maybe some problems , the parameter is not necessary , tcp first
bind
andconnect
with a endpoint which ensure the data transfer to the endpoint