UDP Components trying to implement into the existing framework
Stacked Issues:
Selector constantly sends the UDP socket handler that there is data ready to be recieved. This is probably wrong.
VCSA now knows the destination address. This means it now has different behaviour from the CSA and internal state. Logically this can be resolved by transformation into a connection. That way (tcp) socket and (socket,address) can both be connections.
Virtual Connected Socket Adaptor needs to know the address to send the data to, because it's a virtual connection, not a real one:
def _safesend(sock, data,addr): """Internal only function, used for sending data, and handling EAGAIN style retry scenarios gracefully""" try: sock.sendto(data,addr) return 1