示例#1
0
文件: Server.cs 项目: elnomade/hathi
 /// <summary>
 /// Request file sources via UDP from server.
 /// </summary>
 /// <param name="hashes">Array of file hashes.</param>
 public void RequestSourcesUDP(ArrayList hashes)
 {
     MemoryStream buffer=new MemoryStream();
     CServerAskSourcesUDP PedirFuentesUDP=new CServerAskSourcesUDP(hashes,buffer);
     m_SendPacketUDP(buffer);
 }
示例#2
0
文件: Server.cs 项目: elnomade/hathi
 /// <summary>
 /// Request file sources via UDP from server.
 /// </summary>
 /// <param name="FileHash">Hash of the file.</param>
 public void RequestSourcesUDP(byte[] FileHash)
 {
     MemoryStream buffer=new MemoryStream();
     CServerAskSourcesUDP PedirFuentesUDP=new CServerAskSourcesUDP(FileHash,buffer);
     m_SendPacketUDP(buffer);
 }