All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class NET.shudo.moba.net.SocketAuthenticator
java.lang.Object
   |
   +----NET.shudo.moba.net.SocketAuthenticator
  -  public class SocketAuthenticator
  -  extends Object
identd などの Authentication Server (RFC931) から
 OS名、ユーザID を得るクラス。
 UDP ではなく TCP を利用。
   
  -   SocketAuthenticator(InetAddress, int, int) SocketAuthenticator(InetAddress, int, int)
-   Auth.
  
-   SocketAuthenticator(Socket) SocketAuthenticator(Socket)
-  
  
-   SocketAuthenticator(String, int, int) SocketAuthenticator(String, int, int)
-  
   
  -   isNoUser() isNoUser()
-   コンストラクタで指定したポートを利用しているユーザがいなければ真。
  
-   main(String[]) main(String[])
-  
  
-   OSName() OSName()
-   OS名 を返す。
  
-   responce() responce()
-   Auth.
  
-   userID() userID()
-   ユーザID を返す。
   
 SocketAuthenticator
SocketAuthenticator
 public SocketAuthenticator(Socket sock) throws IOException
 SocketAuthenticator
SocketAuthenticator
 public SocketAuthenticator(String host,
                            int localPort,
                            int remotePort) throws IOException
 SocketAuthenticator
SocketAuthenticator
 public SocketAuthenticator(InetAddress addr,
                            int localPort,
                            int remotePort) throws IOException
  -  Auth. Server から OS名、ユーザID を得る。
 失敗した場合は IOException を throw する。
 指定されたポートを利用しているユーザがいなかった場合は
 SocketAuthenticator#isNoUser() が真を返すようになる。
   
- 
    -  See Also:
    
-  isNoUser
  
 
   
 responce
responce
 public String responce()
  -  Auth. Server のレンスポンスを返す。
 
 OSName
OSName
 public String OSName()
  -  OS名 を返す。
 
 userID
userID
 public String userID()
  -  $B%f!<%6ID を返す。
 
 isNoUser
isNoUser
 public boolean isNoUser()
  -  $B%3%s%9%H%i%/%?$G;XDj$7$?%]!<%H$rMxMQ$7$F$$$k%f!<%6$,$$$J$1$l$P??!#
 
 main
main
 public static void main(String args[]) throws IOException
All Packages  Class Hierarchy  This Package  Previous  Next  Index