Package org.tinyradius.io.server
Class RadiusServer
java.lang.Object
org.tinyradius.io.server.RadiusServer
- All Implemented Interfaces:
Closeable
,AutoCloseable
Implements a simple Radius server.
-
Constructor Summary
ConstructorDescriptionRadiusServer
(io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.ChannelHandler handler1, io.netty.channel.ChannelHandler handler2, InetSocketAddress socket1, InetSocketAddress socket2) RadiusServer
(io.netty.bootstrap.Bootstrap bootstrap, List<io.netty.channel.ChannelHandler> channelHandlers, List<InetSocketAddress> socketAddresses) -
Method Summary
-
Constructor Details
-
RadiusServer
public RadiusServer(io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.ChannelHandler handler1, io.netty.channel.ChannelHandler handler2, InetSocketAddress socket1, InetSocketAddress socket2) - Parameters:
bootstrap
- bootstrap with channel class and eventLoopGroup set uphandler1
- ChannelHandler to handle requests received on socket1handler2
- ChannelHandler to handle requests received on socket2socket1
- socket to listen onsocket2
- socket to listen on
-
RadiusServer
public RadiusServer(io.netty.bootstrap.Bootstrap bootstrap, List<io.netty.channel.ChannelHandler> channelHandlers, List<InetSocketAddress> socketAddresses) - Parameters:
bootstrap
- bootstrap with channel class and eventLoopGroup set upchannelHandlers
- list of channelHandlers to handle requestssocketAddresses
- list of socketAddresses to bind channelHandlers to, must be same length
-
-
Method Details
-
isReady
-
getChannels
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-