Invalid Arguments in TransmitPackets implementation

I am trying to create a new method to UdpConn: WriteMultiple(packets [][]byte).
which should send more than one packet in one syscall. I’ve implemented that but I get "Invalid Arguments"
error. I was wondering if someone could help me find the problem. code exists here:
You can see the changes I’ve made through the commits.
Thanks in advance.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.