codeghar / Seagull

Seagull is a free, Open Source (GPL) multi-protocol traffic generator test tool. Forked from upstream on Sourceforge. Patched to build on recent versions of Ubuntu, CentOS, and openSUSE.
GNU General Public License v2.0
51 stars 49 forks source link

Updated C_Socket.cpp for to work with UDP #19

Closed tkantner closed 6 years ago

tkantner commented 6 years ago

Previously, sendto() would fail if the socket was first bound before sending the message. I have changed this so that bind() is only called for TCP since the socket will be automatically bound with sendto()

aikchar commented 6 years ago

I don't really know C so I'm trusting this is correct. 👍