Migrate away from spacehq.org

This commit is contained in:
Steveice10 2017-03-01 16:09:48 -08:00
parent f51fda303a
commit 4608261e99
53 changed files with 164 additions and 191 deletions

View file

@ -2,13 +2,10 @@
PacketLib is a library for packet-based networking between clients and servers It was made as a basis for other projects involving packet networking.
## Test Example
See examples/org/spacehq/packetlib/test
See examples/com/github/steveice10/packetlib/test
## Building the Source
PacketLib uses Maven to manage dependencies. Simply run 'mvn clean install' in the source's directory.
Builds can be downloaded **[here](https://build.spacehq.org/job/PacketLib)**.
Javadocs can be found **[here](https://build.spacehq.org/job/PacketLib/javadoc)**.
## License
PacketLib is licensed under the **[MIT license](http://www.opensource.org/licenses/mit-license.html)**.

View file

@ -1,11 +1,11 @@
package org.spacehq.packetlib.test;
package com.github.steveice10.packetlib.test;
import org.spacehq.packetlib.event.session.ConnectedEvent;
import org.spacehq.packetlib.event.session.DisconnectedEvent;
import org.spacehq.packetlib.event.session.DisconnectingEvent;
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
import org.spacehq.packetlib.event.session.PacketSentEvent;
import org.spacehq.packetlib.event.session.SessionAdapter;
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectingEvent;
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
import com.github.steveice10.packetlib.event.session.PacketSentEvent;
import com.github.steveice10.packetlib.event.session.SessionAdapter;
public class ClientSessionListener extends SessionAdapter {
@Override

View file

@ -1,8 +1,8 @@
package org.spacehq.packetlib.test;
package com.github.steveice10.packetlib.test;
import org.spacehq.packetlib.io.NetInput;
import org.spacehq.packetlib.io.NetOutput;
import org.spacehq.packetlib.packet.Packet;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.packet.Packet;
import java.io.IOException;

View file

@ -1,8 +1,8 @@
package org.spacehq.packetlib.test;
package com.github.steveice10.packetlib.test;
import org.spacehq.packetlib.Client;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.tcp.TcpSessionFactory;
import com.github.steveice10.packetlib.Client;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.tcp.TcpSessionFactory;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;

View file

@ -1,11 +1,11 @@
package org.spacehq.packetlib.test;
package com.github.steveice10.packetlib.test;
import org.spacehq.packetlib.event.server.ServerAdapter;
import org.spacehq.packetlib.event.server.ServerBoundEvent;
import org.spacehq.packetlib.event.server.ServerClosedEvent;
import org.spacehq.packetlib.event.server.ServerClosingEvent;
import org.spacehq.packetlib.event.server.SessionAddedEvent;
import org.spacehq.packetlib.event.server.SessionRemovedEvent;
import com.github.steveice10.packetlib.event.server.ServerAdapter;
import com.github.steveice10.packetlib.event.server.ServerBoundEvent;
import com.github.steveice10.packetlib.event.server.ServerClosedEvent;
import com.github.steveice10.packetlib.event.server.ServerClosingEvent;
import com.github.steveice10.packetlib.event.server.SessionAddedEvent;
import com.github.steveice10.packetlib.event.server.SessionRemovedEvent;
import javax.crypto.SecretKey;

View file

@ -1,11 +1,11 @@
package org.spacehq.packetlib.test;
package com.github.steveice10.packetlib.test;
import org.spacehq.packetlib.event.session.ConnectedEvent;
import org.spacehq.packetlib.event.session.DisconnectedEvent;
import org.spacehq.packetlib.event.session.DisconnectingEvent;
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
import org.spacehq.packetlib.event.session.PacketSentEvent;
import org.spacehq.packetlib.event.session.SessionAdapter;
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectingEvent;
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
import com.github.steveice10.packetlib.event.session.PacketSentEvent;
import com.github.steveice10.packetlib.event.session.SessionAdapter;
public class ServerSessionListener extends SessionAdapter {
@Override

View file

@ -1,13 +1,13 @@
package org.spacehq.packetlib.test;
package com.github.steveice10.packetlib.test;
import org.spacehq.packetlib.Client;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.crypt.AESEncryption;
import org.spacehq.packetlib.crypt.PacketEncryption;
import org.spacehq.packetlib.packet.DefaultPacketHeader;
import org.spacehq.packetlib.packet.PacketHeader;
import org.spacehq.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.Client;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.crypt.AESEncryption;
import com.github.steveice10.packetlib.crypt.PacketEncryption;
import com.github.steveice10.packetlib.packet.DefaultPacketHeader;
import com.github.steveice10.packetlib.packet.PacketHeader;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import javax.crypto.SecretKey;
import java.security.GeneralSecurityException;

26
pom.xml
View file

@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.spacehq</groupId>
<groupId>com.github.steveice10</groupId>
<artifactId>packetlib</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
@ -37,30 +37,6 @@
</developer>
</developers>
<distributionManagement>
<repository>
<id>spacehq</id>
<name>spacehq-releases</name>
<url>https://repo.spacehq.org/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>spacehq</id>
<name>spacehq-snapshots</name>
<url>https://repo.spacehq.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<repository>
<id>spacehq-releases</id>
<url>https://repo.spacehq.org/content/repositories/releases/</url>
</repository>
<repository>
<id>spacehq-snapshots</id>
<url>https://repo.spacehq.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.netty</groupId>

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib;
package com.github.steveice10.packetlib;
import org.spacehq.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.packet.PacketProtocol;
/**
* A client that may connect to a server.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib;
package com.github.steveice10.packetlib;
/**
* Listens for new sessions to connect.

View file

@ -1,13 +1,13 @@
package org.spacehq.packetlib;
package com.github.steveice10.packetlib;
import org.spacehq.packetlib.event.server.ServerBoundEvent;
import org.spacehq.packetlib.event.server.ServerClosedEvent;
import org.spacehq.packetlib.event.server.ServerClosingEvent;
import org.spacehq.packetlib.event.server.ServerEvent;
import org.spacehq.packetlib.event.server.ServerListener;
import org.spacehq.packetlib.event.server.SessionAddedEvent;
import org.spacehq.packetlib.event.server.SessionRemovedEvent;
import org.spacehq.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.event.server.ServerBoundEvent;
import com.github.steveice10.packetlib.event.server.ServerClosedEvent;
import com.github.steveice10.packetlib.event.server.ServerEvent;
import com.github.steveice10.packetlib.event.server.ServerListener;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.event.server.SessionAddedEvent;
import com.github.steveice10.packetlib.event.server.SessionRemovedEvent;
import com.github.steveice10.packetlib.event.server.ServerClosingEvent;
import java.lang.reflect.Constructor;
import java.util.ArrayList;

View file

@ -1,9 +1,9 @@
package org.spacehq.packetlib;
package com.github.steveice10.packetlib;
import org.spacehq.packetlib.event.session.SessionEvent;
import org.spacehq.packetlib.event.session.SessionListener;
import org.spacehq.packetlib.packet.Packet;
import org.spacehq.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.event.session.SessionListener;
import com.github.steveice10.packetlib.packet.Packet;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.event.session.SessionEvent;
import java.net.SocketAddress;
import java.util.List;

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib;
package com.github.steveice10.packetlib;
/**
* A factory for creating sessions.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.crypt;
package com.github.steveice10.packetlib.crypt;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.crypt;
package com.github.steveice10.packetlib.crypt;
/**
* An interface for encrypting packets.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
/**
* An adapter for picking server events to listen for.

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
import org.spacehq.packetlib.Server;
import com.github.steveice10.packetlib.Server;
/**
* Called when the server is bound to its host and port.

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
import org.spacehq.packetlib.Server;
import com.github.steveice10.packetlib.Server;
/**
* Called when the server is closed.

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
import org.spacehq.packetlib.Server;
import com.github.steveice10.packetlib.Server;
/**
* Called when the server is about to close.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
/**
* An event relating to servers.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
/**
* A listener for listening to server events.

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.Session;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
/**
* Called when a session is added to the server.

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.event.server;
package com.github.steveice10.packetlib.event.server;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.Session;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
/**
* Called when a session is removed and disconnected from the server.

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
import org.spacehq.packetlib.Session;
import com.github.steveice10.packetlib.Session;
/**
* Called when the session connects.

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
import org.spacehq.packetlib.Session;
import com.github.steveice10.packetlib.Session;
/**
* Called when the session is disconnected.

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
import org.spacehq.packetlib.Session;
import com.github.steveice10.packetlib.Session;
/**
* Called when the session is about to disconnect.

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.packet.Packet;
import com.github.steveice10.packetlib.packet.Packet;
import com.github.steveice10.packetlib.Session;
/**
* Called when the session receives a packet.

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.packet.Packet;
import com.github.steveice10.packetlib.packet.Packet;
import com.github.steveice10.packetlib.Session;
/**
* Called when the session has sent a packet.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
/**
* An adapter for picking session events to listen for.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
/**
* An event relating to sessions.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.event.session;
package com.github.steveice10.packetlib.event.session;
/**
* A listener for listening to session events.

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.io;
package com.github.steveice10.packetlib.io;
import java.io.IOException;
import java.util.UUID;

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.io;
package com.github.steveice10.packetlib.io;
import java.io.IOException;
import java.util.UUID;

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.io.buffer;
package com.github.steveice10.packetlib.io.buffer;
import org.spacehq.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetInput;
import java.io.IOException;
import java.nio.ByteBuffer;

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.io.buffer;
package com.github.steveice10.packetlib.io.buffer;
import org.spacehq.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;
import java.nio.ByteBuffer;

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.io.stream;
package com.github.steveice10.packetlib.io.stream;
import org.spacehq.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetInput;
import java.io.EOFException;
import java.io.IOException;

View file

@ -1,6 +1,6 @@
package org.spacehq.packetlib.io.stream;
package com.github.steveice10.packetlib.io.stream;
import org.spacehq.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;
import java.io.OutputStream;

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.packet;
package com.github.steveice10.packetlib.packet;
import org.spacehq.packetlib.io.NetInput;
import org.spacehq.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.packet;
package com.github.steveice10.packetlib.packet;
import org.spacehq.packetlib.io.NetInput;
import org.spacehq.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.packet;
package com.github.steveice10.packetlib.packet;
import org.spacehq.packetlib.io.NetInput;
import org.spacehq.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;

View file

@ -1,9 +1,9 @@
package org.spacehq.packetlib.packet;
package com.github.steveice10.packetlib.packet;
import org.spacehq.packetlib.Client;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.crypt.PacketEncryption;
import com.github.steveice10.packetlib.Client;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.crypt.PacketEncryption;
import java.lang.reflect.Constructor;
import java.util.HashMap;

View file

@ -1,4 +1,4 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import io.netty.channel.ChannelFactory;
import io.netty.channel.socket.oio.OioSocketChannel;

View file

@ -1,5 +1,6 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
@ -11,8 +12,7 @@ import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.oio.OioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.util.concurrent.Future;
import org.spacehq.packetlib.Client;
import org.spacehq.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.Client;
import javax.naming.directory.InitialDirContext;
import java.net.Proxy;

View file

@ -1,5 +1,8 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.ConnectionListener;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
@ -12,9 +15,6 @@ import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.GenericFutureListener;
import org.spacehq.packetlib.ConnectionListener;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.packet.PacketProtocol;
import java.net.InetSocketAddress;

View file

@ -1,15 +1,15 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.packet.Packet;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.tcp.io.ByteBufNetInput;
import com.github.steveice10.packetlib.tcp.io.ByteBufNetOutput;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageCodec;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
import org.spacehq.packetlib.io.NetInput;
import org.spacehq.packetlib.io.NetOutput;
import org.spacehq.packetlib.packet.Packet;
import org.spacehq.packetlib.tcp.io.ByteBufNetInput;
import org.spacehq.packetlib.tcp.io.ByteBufNetOutput;
import java.util.List;

View file

@ -1,13 +1,13 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.tcp.io.ByteBufNetInput;
import com.github.steveice10.packetlib.tcp.io.ByteBufNetOutput;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageCodec;
import io.netty.handler.codec.DecoderException;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.tcp.io.ByteBufNetInput;
import org.spacehq.packetlib.tcp.io.ByteBufNetOutput;
import java.util.List;
import java.util.zip.Deflater;

View file

@ -1,9 +1,9 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageCodec;
import org.spacehq.packetlib.Session;
import com.github.steveice10.packetlib.Session;
import java.util.List;

View file

@ -1,13 +1,13 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.tcp.io.ByteBufNetInput;
import com.github.steveice10.packetlib.tcp.io.ByteBufNetOutput;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageCodec;
import io.netty.handler.codec.CorruptedFrameException;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.tcp.io.ByteBufNetInput;
import org.spacehq.packetlib.tcp.io.ByteBufNetOutput;
import com.github.steveice10.packetlib.Session;
import java.util.List;

View file

@ -1,8 +1,8 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import io.netty.channel.ChannelHandlerContext;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.packet.PacketProtocol;
import java.util.Map;

View file

@ -1,5 +1,11 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import com.github.steveice10.packetlib.event.session.DisconnectingEvent;
import com.github.steveice10.packetlib.event.session.PacketReceivedEvent;
import com.github.steveice10.packetlib.event.session.SessionListener;
import com.github.steveice10.packetlib.packet.Packet;
import com.github.steveice10.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.event.session.SessionEvent;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
@ -10,16 +16,10 @@ import io.netty.handler.timeout.ReadTimeoutException;
import io.netty.handler.timeout.ReadTimeoutHandler;
import io.netty.handler.timeout.WriteTimeoutException;
import io.netty.handler.timeout.WriteTimeoutHandler;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.event.session.ConnectedEvent;
import org.spacehq.packetlib.event.session.DisconnectedEvent;
import org.spacehq.packetlib.event.session.DisconnectingEvent;
import org.spacehq.packetlib.event.session.PacketReceivedEvent;
import org.spacehq.packetlib.event.session.PacketSentEvent;
import org.spacehq.packetlib.event.session.SessionEvent;
import org.spacehq.packetlib.event.session.SessionListener;
import org.spacehq.packetlib.packet.Packet;
import org.spacehq.packetlib.packet.PacketProtocol;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
import com.github.steveice10.packetlib.event.session.PacketSentEvent;
import java.net.ConnectException;
import java.net.SocketAddress;

View file

@ -1,10 +1,10 @@
package org.spacehq.packetlib.tcp;
package com.github.steveice10.packetlib.tcp;
import org.spacehq.packetlib.Client;
import org.spacehq.packetlib.ConnectionListener;
import org.spacehq.packetlib.Server;
import org.spacehq.packetlib.Session;
import org.spacehq.packetlib.SessionFactory;
import com.github.steveice10.packetlib.SessionFactory;
import com.github.steveice10.packetlib.Client;
import com.github.steveice10.packetlib.ConnectionListener;
import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
import java.net.Proxy;

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.tcp.io;
package com.github.steveice10.packetlib.tcp.io;
import com.github.steveice10.packetlib.io.NetInput;
import io.netty.buffer.ByteBuf;
import org.spacehq.packetlib.io.NetInput;
import java.io.IOException;
import java.util.UUID;

View file

@ -1,7 +1,7 @@
package org.spacehq.packetlib.tcp.io;
package com.github.steveice10.packetlib.tcp.io;
import io.netty.buffer.ByteBuf;
import org.spacehq.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;
import java.util.UUID;