Hi,
I guess I should ask a question here, since it is, well, a language 
specific discussion group. 
I don't know whether I fully understood UDP protocol fully though. I got a 
project that requires me to maintain a reliable connection on top of UDP/IP 
protocol. So I used Go for the project.

When I looked at the net package. I see *net.UDPConn implemented the 
PacketConn and the Conn interfaces... So I was a little confused about the 
notion of "connection-oriented" and "connectionless" UDP. I thought UDP was 
only connectionless? Yes, this is* the first question*!

So here's how I set up my sender and my 
receiver: https://play.golang.org/p/KtBqb2nKwS

The problem is once the receiver receives a packet from the sender, the 
receiver attempts to reply with another packet. So I used WriteToUDP to 
send another packet back on the receiver's socket using the address from 
ReceiveFrom. But it seems the sender does not receive the packet, the 
sender just holds and waits on ReadFrom.

*My second question is*: Did I set it up properly ? Please note that I 
tested the sender and the receiver on 2 different machines on a same subnet.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to