/// <summary> /// Process a list of search results from incomming packet. /// </summary> /// <param name="packet">Incomming packet.</param> public void ProcessSearchResults(byte[] packet) { CServerSearchResults ServerSearchResults=new CServerSearchResults(new MemoryStream(packet),m_LastSearcher,false); }
/// <summary> /// Process a list of search results from incomming UDP packet. /// </summary> /// <param name="packet">Incomming packet.</param> public void ProcessSearchResultsUDP(MemoryStream packet) { m_nFails=0; CServerSearchResults ServerSearchResults=new CServerSearchResults(packet,m_LastSearcher,true); }
public void ProcessSharedListResponse(byte[] packet) { m_SharedFilesRequested=false; CSearcher search=new CSearcher(); int searchID=++CKernel.LastSearch; // if (CKernel.Searchs.Count==0) // searchID=1; // else // searchID=(int)CKernel.Searchs.GetKey(CKernel.Searchs.Count-1)+1; CKernel.Searchs.Add(searchID,search); CKernel.NewSearchTab(searchID,m_UserName); CServerSearchResults ServerSearchResults=new CServerSearchResults(new MemoryStream(packet),search,false); }