当前位置: 首页>>代码示例>>Java>>正文


Java PacketProtocol类代码示例

本文整理汇总了Java中com.github.steveice10.packetlib.packet.PacketProtocol的典型用法代码示例。如果您正苦于以下问题:Java PacketProtocol类的具体用法?Java PacketProtocol怎么用?Java PacketProtocol使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PacketProtocol类属于com.github.steveice10.packetlib.packet包,在下文中一共展示了PacketProtocol类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProtocol

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
@Override
public PacketProtocol getProtocol() {
    return this;
}
 
开发者ID:games647,项目名称:LambdaAttack,代码行数:5,代码来源:ProtocolWrapper.java

示例2: Server

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
public Server(String host, int port, Class<? extends PacketProtocol> protocol, SessionFactory factory) {
    this.host = host;
    this.port = port;
    this.protocol = protocol;
    this.factory = factory;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:7,代码来源:Server.java

示例3: Client

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
public Client(String host, int port, PacketProtocol protocol, SessionFactory factory) {
    this.host = host;
    this.port = port;
    this.protocol = protocol;
    this.session = factory.createClientSession(this);
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:7,代码来源:Client.java

示例4: TcpSession

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
public TcpSession(String host, int port, PacketProtocol protocol) {
    this.host = host;
    this.port = port;
    this.protocol = protocol;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:6,代码来源:TcpSession.java

示例5: getPacketProtocol

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
@Override
public PacketProtocol getPacketProtocol() {
    return this.protocol;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:5,代码来源:TcpSession.java

示例6: TcpServerSession

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
public TcpServerSession(String host, int port, PacketProtocol protocol, Server server) {
    super(host, port, protocol);
    this.server = server;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:5,代码来源:TcpServerSession.java

示例7: TcpClientSession

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
public TcpClientSession(String host, int port, PacketProtocol protocol, Client client, Proxy proxy) {
    super(host, port, protocol);
    this.client = client;
    this.proxy = proxy;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:6,代码来源:TcpClientSession.java

示例8: getPacketProtocol

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
/**
 * Gets the packet protocol of the server.
 *
 * @return The server's packet protocol.
 */
public Class<? extends PacketProtocol> getPacketProtocol() {
    return this.protocol;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:9,代码来源:Server.java

示例9: getPacketProtocol

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
/**
 * Gets the packet protocol of the session.
 *
 * @return The session's packet protocol.
 */
public PacketProtocol getPacketProtocol();
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:7,代码来源:Session.java

示例10: getPacketProtocol

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
/**
 * Gets the packet protocol of the client.
 *
 * @return The client's packet protocol.
 */
public PacketProtocol getPacketProtocol() {
    return this.protocol;
}
 
开发者ID:Steveice10,项目名称:PacketLib,代码行数:9,代码来源:Client.java

示例11: getProtocol

import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
PacketProtocol getProtocol(); 
开发者ID:games647,项目名称:LambdaAttack,代码行数:2,代码来源:UniversalProtocol.java


注:本文中的com.github.steveice10.packetlib.packet.PacketProtocol类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。