⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messengerprotocol.java

📁 基于jxta的局域网P2P文件共享,可以实现局域网中的文件p2p共享,实现文件快速传输及交流
💻 JAVA
字号:
package connex.plugins.Messenger;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class MessengerProtocol {
  protected static String version = "ConneX_Messenger_v0.1";


     /* Message types*/
     protected static String message = "message";
     protected static String picture = "picture";
     protected static String file= "file";


     /*
      * PresenceService also defines it own protocol. Requests arrive as a JXTA
      * Message with the following elements:
      */
     //Protocol header
     protected static String nameSpace = "ConneXMessenger";
     protected static String versionTag = "version";
     public static final String membIDTag = "memberID";
     public static final String membNameTag= "membName";
     public static final String typeTag = "type";

     //protocol data
     public static final String messageTag = "messageTag";
     public static final String pictureTag = "pictureTag";
     public static final String fileTag = "FileTag";


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -