[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ron Sigal
ron_sigal at yahoo.com
Tue Nov 20 22:52:34 EST 2007
User: rsigal
Date: 07/11/20 22:52:34
Modified: src/main/org/jboss/remoting Tag: remoting_2_x Client.java
Log:
JBREM-792: Added getAddressSeenByServer().
Revision Changes Path
No revision
No revision
1.53.2.38 +11 -1 JBossRemoting/src/main/org/jboss/remoting/Client.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Client.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/Client.java,v
retrieving revision 1.53.2.37
retrieving revision 1.53.2.38
diff -u -b -r1.53.2.37 -r1.53.2.38
--- Client.java 30 Jun 2007 07:45:27 -0000 1.53.2.37
+++ Client.java 21 Nov 2007 03:52:34 -0000 1.53.2.38
@@ -68,7 +68,7 @@
* @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
* @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
*
- * @version $Revision: 1.53.2.37 $
+ * @version $Revision: 1.53.2.38 $
*/
public class Client implements Externalizable
{
@@ -1502,6 +1502,16 @@
return invoker.getLeasePeriod(sessionId);
}
+ /**
+ * Returns an InetAddress for the client machine as seen by the server machine.
+ * @return an InetAddress for the client machine as seen by the server machine.
+ * @throws Throwable
+ */
+ public InetAddress getAddressSeenByServer() throws Throwable
+ {
+ return (InetAddress) invoke("$GET_CLIENT_LOCAL_ADDRESS$");
+ }
+
public String toString()
{
return "Client[" + System.identityHashCode(this) + "]";
More information about the jboss-cvs-commits
mailing list