private int WaitForData()
if (pfnCallBack == null)
pfnCallBack = new AsyncCallback(OnDataReceived);
// now start to listen for any data...
((Socket)objResource).BeginReceive(m_DataBuffer, 0, m_DataBuffer.Length, SocketFlags.None, pfnCallBack, null);
Open in new window
IT issues often require a personalized solution. With Ask the Experts™, submit your questions to our certified professionals and receive unlimited, customized solutions that work for you.