|
Re: [CDO] IP on negotiating [message #426865 is a reply to message #426769] |
Thu, 22 January 2009 20:03 |
|
This is a multi-part message in MIME format.
--------------070400020209000300040804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Egidijus,
The negotiaton framework is unaware of the concrete negotiation medium
(here: ITCPConnector).
But an INegotiator is passed an INegotiationContext in its negotiate()
method:
|*public interface *INegotiator
{
/**
* @since 2.0
*/
*public **boolean *isInitiator();
*public **void *negotiate(INegotiationContext context);
}|
In your case this context can be cast down to
TCPConnector.TCPNegotiationContext.
Unfortunately it is private and does neither implement a more specific
interface nor does it expose the connector instance.
Please file a Bugzilla so that I cann add respective API.
Cheers
/Eike
----
http://thegordian.blogspot.com
Egidijus Vaisnora schrieb:
> Hello,
>
> Again, question about negotiating. How could I verify that
> connection, opened by the particular user, is opened from the local IP
> (or any predefined IP)?
> At current time I desire to verify on my negotiator that MASTER
> user are connecting from the predefined IP and permit/disable
> connection regarding IP, but seems that negotiator doesn't have IP
> information of the "challenging" user... How could I obtain it?
>
> Thanks,
> Egidijus
--------------070400020209000300040804
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Egidijus,<br>
<br>
The negotiaton framework is unaware of the concrete negotiation medium
(here: ITCPConnector).<br>
But an INegotiator is passed an INegotiationContext in its negotiate()
method:<br>
<br>
<title></title>
<style type="text/css">
<!--code { font-family: Courier New, Courier; font-size: 10pt; margin: 0px; }-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ======================================================== -->
<!-- = Java Sourcecode to HTML automatically converted code = --><!-- = Java2Html Converter 5.0 [2006-02-26] by Markus Gebhard markus@jave.de = -->
<!-- = Further information: http://www.java2html.de = -->
<div class="java" align="left">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<!-- start source code --> <td align="left" nowrap="nowrap"
valign="top"> <code><font color="#7f0055"><b>public interface </b ></font><font
color="#000000">INegotiator</font><br>
<font color="#000000">{</font><br>
<font color="#ffffff"> </font><font color="#3f5fbf">/**</font><br>
<font color="#ffffff"> </font><font color="#3f5fbf">* </font><font
color="#7f9fbf">@since </font><font color="#3f5fbf">2.0</font><br>
<font color="#ffffff"> </font><font color="#3f5fbf">*/</font><br>
<font color="#ffffff"> </font><font color="#7f0055"><b>public </b></font><font
color="#7f0055"><b>boolean </b></font><font color="#000000">isInitiator</font><font
color="#000000">()</font><font color="#000000">;</font><br>
<font color="#ffffff"></font><br>
<font color="#ffffff"> </font><font color="#7f0055"><b>public </b></font><font
color="#7f0055"><b>void </b></font><font color="#000000">negotiate</font><font
color="#000000">(</font><font color="#000000">INegotiationContext context</font ><font
color="#000000">)</font><font color="#000000">;</font><br>
<font color="#000000">}</font></code> </td>
<!-- end source code --> </tr>
</tbody>
</table>
</div>
<!-- = END of automatically generated HTML code = -->
<!-- ======================================================== --><br>
In your case this context can be cast down to
TCPConnector.TCPNegotiationContext.<br>
Unfortunately it is private and does neither implement a more specific
interface nor does it expose the connector instance.<br>
Please file a Bugzilla so that I cann add respective API.<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<br>
<br>
<br>
<br>
Egidijus Vaisnora schrieb:
<blockquote cite="mid:gl45n8$1hv$1@build.eclipse.org" type="cite">Hello,
<br>
<br>
Again, question about negotiating. How could I verify that
connection, opened by the particular user, is opened from the local IP
(or any predefined IP)?
<br>
At current time I desire to verify on my negotiator that MASTER
user are connecting from the predefined IP and permit/disable
connection regarding IP, but seems that negotiator doesn't have IP
information of the "challenging" user... How could I obtain it?
<br>
<br>
Thanks,
<br>
Egidijus
<br>
</blockquote>
</body>
</html>
--------------070400020209000300040804--
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.03864 seconds