📄 protocol.java
字号:
package de.uni_bremen.informatik.p2p.plugins.filesharing.data;
/**
*
* Holds the Strings for the Protocol of the Filesharing
* @author Daniel Gehrke
*
*/
public class Protocol {
/** Contains the searchstring for a request */
public static String SEARCHREQUEST = "REQ";
/** Contains the result for a searchrequest */
public static String SEARCHRESULT = "RES";
/** Contains the request from antother peer for a chunk of a file */
public static String DOWNLOADREQUEST = "DONWLOADREQ";
/** Contains the part of a file in a byte[] sent by another peer */
public static String DOWNLOADANSWER = "DOWNLOADANS";
/** Number of package. All chunks are numbered and represent FILEPOSITION = CHUNKNR*CHUNKSIZE*/
public static String PACKETNUMBER = "PACKETNR";
/** Contains data of a chunk as byte[] */
public static String PACKETDATA = "DATA";
/** Searchtype */
public static String SEARCHTYPE = "SEARCHTYPE";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -