本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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;
}
示例5: getPacketProtocol
import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
@Override
public PacketProtocol getPacketProtocol() {
return this.protocol;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
示例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;
}
示例11: getProtocol
import com.github.steveice10.packetlib.packet.PacketProtocol; //导入依赖的package包/类
PacketProtocol getProtocol();