net.jradius.client
Class UDPClientTransport

java.lang.Object
  extended by net.jradius.client.RadiusClientTransport
      extended by net.jradius.client.UDPClientTransport

public class UDPClientTransport
extends RadiusClientTransport


Field Summary
protected  DatagramChannel channel
           
static int defaultAcctPort
           
static int defaultAuthPort
           
protected  DatagramSocket socket
           
 
Fields inherited from class net.jradius.client.RadiusClientTransport
acctPort, authPort, defaultTimeout, localInetAddress, radiusClient, remoteInetAddress, sharedSecret, socketTimeout, statusListener
 
Constructor Summary
UDPClientTransport()
           
UDPClientTransport(DatagramSocket socket)
           
 
Method Summary
 void close()
           
protected  RadiusResponse receive(RadiusRequest req)
           
protected  void send(RadiusRequest req, int attempt)
           
 void setSocketTimeout(int timeout)
           
 
Methods inherited from class net.jradius.client.RadiusClientTransport
generateMessageAuthenticator, getAcctPort, getAuthPort, getLocalInetAddress, getRadiusClient, getRemoteInetAddress, getSharedSecret, getSocketTimeout, sendReceive, setAcctPort, setAuthPort, setLocalInetAddress, setRadiusClient, setRemoteInetAddress, setSharedSecret, setStatusListener, verifyAuthenticator, verifyAuthenticator, verifyAuthenticator, verifyMessageAuthenticator, verifyMessageAuthenticator, verifyMessageAuthenticator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultAuthPort

public static final int defaultAuthPort
See Also:
Constant Field Values

defaultAcctPort

public static final int defaultAcctPort
See Also:
Constant Field Values

channel

protected DatagramChannel channel

socket

protected DatagramSocket socket
Constructor Detail

UDPClientTransport

public UDPClientTransport(DatagramSocket socket)

UDPClientTransport

public UDPClientTransport()
                   throws IOException
Throws:
IOException
Method Detail

close

public void close()
Specified by:
close in class RadiusClientTransport

send

protected void send(RadiusRequest req,
                    int attempt)
             throws Exception
Specified by:
send in class RadiusClientTransport
Throws:
Exception

receive

protected RadiusResponse receive(RadiusRequest req)
                          throws Exception
Specified by:
receive in class RadiusClientTransport
Throws:
Exception

setSocketTimeout

public void setSocketTimeout(int timeout)
Overrides:
setSocketTimeout in class RadiusClientTransport
Parameters:
timeout - The socket timeout (in seconds)


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.