you should check if the socket successfully opened prior to sending data. you are not recving data because you are reading data immediately after sending your packet. you need to give the server time to respond. see my VAC ban status plugin. link in my sig
you can solve this issue by using a repeating set_task to check for data at an interval