Class NeonSocket
java.lang.Object
com.quietterminal.neon.core.NeonSocket
- All Implemented Interfaces:
Transport, AutoCloseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Transport
Transport.ReceivedData -
Constructor Summary
ConstructorsConstructorDescriptionNeonSocket(int port, NeonConfig config) NeonSocket(NeonConfig config) NeonSocket(InetSocketAddress bindAddress, NeonConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisClosed()receive()voidsend(byte[] data, SocketAddress address) voidsendPacket(NeonPacket packet, SocketAddress address) voidsetBlocking(boolean blocking) voidsetTimeout(int ms)
-
Constructor Details
-
NeonSocket
- Throws:
IOException
-
NeonSocket
- Throws:
IOException
-
NeonSocket
- Throws:
IOException
-
-
Method Details
-
send
- Specified by:
sendin interfaceTransport- Throws:
IOException
-
receive
- Specified by:
receivein interfaceTransport- Throws:
IOException
-
receivePacket
- Throws:
IOException
-
sendPacket
- Throws:
IOException
-
setBlocking
public void setBlocking(boolean blocking) -
setTimeout
public void setTimeout(int ms) -
getLocalAddress
- Specified by:
getLocalAddressin interfaceTransport- Throws:
IOException
-
isClosed
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-