It doesn't work. Error appears: write ip 127.0.0.1->127.0.0.1: use of WriteTo with pre-connected connection.
It seems DialIP can't be used with WriteMsgIP and I want this to be documented.
What did you see instead?
No documentation.
The text was updated successfully, but these errors were encountered:
ilyaigpetrov
changed the title
Document That net.DialIP Can Only Be Used With Connection-less Protocols
Document That net.DialIP Can Only Be Used With net.WriteMsgIP of Connection-less Protocols
Dec 23, 2017
odeke-em
changed the title
Document That net.DialIP Can Only Be Used With net.WriteMsgIP of Connection-less Protocols
net: document that DialIP can only be used with WriteMsgIP of Connection-less protocols
Dec 23, 2017
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.2 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
WriteMsgIP
can't be used afterDialIP
to TCPWhat did you expect to see?
It doesn't work. Error appears:
write ip 127.0.0.1->127.0.0.1: use of WriteTo with pre-connected connection
.It seems
DialIP
can't be used withWriteMsgIP
and I want this to be documented.What did you see instead?
No documentation.
The text was updated successfully, but these errors were encountered: