Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] IP on negotiating
[CDO] IP on negotiating [message #426769] Tue, 20 January 2009 09:33 Go to next message
Egidijus Vaisnora is currently offline Egidijus VaisnoraFriend
Messages: 47
Registered: July 2009
Member
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
Re: [CDO] IP on negotiating [message #426865 is a reply to message #426769] Thu, 22 January 2009 20:03 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6683
Registered: July 2009
Senior Member
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&nbsp;interface&nbsp;</b ></font><font
color="#000000">INegotiator</font><br>
<font color="#000000">{</font><br>
<font color="#ffffff">&nbsp;&nbsp;</font><font color="#3f5fbf">/**</font><br>
<font color="#ffffff">&nbsp;&nbsp;&nbsp;</font><font color="#3f5fbf">*&nbsp;</font><font
color="#7f9fbf">@since&nbsp;</font><font color="#3f5fbf">2.0</font><br>
<font color="#ffffff">&nbsp;&nbsp;&nbsp;</font><font color="#3f5fbf">*/</font><br>
<font color="#ffffff">&nbsp;&nbsp;</font><font color="#7f0055"><b>public&nbsp;</b></font><font
color="#7f0055"><b>boolean&nbsp;</b></font><font color="#000000">isInitiator</font><font
color="#000000">()</font><font color="#000000">;</font><br>
<font color="#ffffff"></font><br>
<font color="#ffffff">&nbsp;&nbsp;</font><font color="#7f0055"><b>public&nbsp;</b></font><font
color="#7f0055"><b>void&nbsp;</b></font><font color="#000000">negotiate</font><font
color="#000000">(</font><font color="#000000">INegotiationContext&nbsp;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>
&nbsp;&nbsp;&nbsp;&nbsp;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>
&nbsp;&nbsp;&nbsp;&nbsp;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--


Re: [CDO] IP on negotiating [message #426877 is a reply to message #426865] Fri, 23 January 2009 08:50 Go to previous message
Egidijus Vaisnora is currently offline Egidijus VaisnoraFriend
Messages: 47
Registered: July 2009
Member
> Please file a Bugzilla so that I cann add respective API.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=262129
Previous Topic:deletion of referenced elements
Next Topic:[CDO/Net4j]java.nio.BufferUnderflowException
Goto Forum:
  


Current Time: Sat May 04 20:15:48 GMT 2024

Powered by FUDForum. Page generated in 0.03864 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top