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)
- Auth.
-
SocketAuthenticator(Socket)
-
-
SocketAuthenticator(String, int, int)
-
-
isNoUser()
- コンストラクタで指定したポートを利用しているユーザがいなければ真。
-
main(String[])
-
-
OSName()
- OS名 を返す。
-
responce()
- Auth.
-
userID()
- ユーザID を返す。
SocketAuthenticator
public SocketAuthenticator(Socket sock) throws IOException
SocketAuthenticator
public SocketAuthenticator(String host,
int localPort,
int remotePort) throws IOException
SocketAuthenticator
public SocketAuthenticator(InetAddress addr,
int localPort,
int remotePort) throws IOException
- Auth. Server から OS名、ユーザID を得る。
失敗した場合は IOException を throw する。
指定されたポートを利用しているユーザがいなかった場合は
SocketAuthenticator#isNoUser() が真を返すようになる。
- See Also:
- isNoUser
responce
public String responce()
- Auth. Server のレンスポンスを返す。
OSName
public String OSName()
- OS名 を返す。
userID
public String userID()
- $B%f!<%6ID を返す。
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
public static void main(String args[]) throws IOException
All Packages Class Hierarchy This Package Previous Next Index