Class SocketAdapter

java.lang.Object
java.net.Socket
com.comphenix.protocol.injector.netty.SocketAdapter
All Implemented Interfaces:
Closeable, AutoCloseable

public class SocketAdapter extends Socket
This class wraps a Netty Channel in a Socket. It overrides all methods in Socket to ensure that calls are not mistakingly made to the unsupported super socket. All operations that can be sanely applied to a Channel are implemented here. Those which cannot will throw an UnsupportedOperationException.