/*********************************************************************/ /* */ /* AgentService Framework */ /* www.agentservice.it */ /* */ /* Copyright (C) 2007 l.i.d.o. - DIST, University of Genoa, Italy */ /* GNU Lesser General Public License */ /* */ /* This library is free software; you can redistribute it and/or */ /* modify it under the terms of the GNU Lesser General Public */ /* License as published by the Free Software Foundation, */ /* version 2.1 of the License. */ /* */ /* This library is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */ /* Lesser General Public License for more details. */ /* */ /* You should have received a copy of the GNU Lesser General Public */ /* License along with this library; if not, write to the */ /* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */ /* Boston, MA 02111-1307, USA. */ /* */ /*********************************************************************/ using System; using System.Net; using System.Net.Sockets; namespace AgentService.Interop { /// /// Interface IPlatformBinder. Binds to an instance /// of the AgentService platform. The binder asks /// for a user data, platform address, and platform /// RSA public key and retrieves an interface to the /// platfrom that will be configured according to the /// user privilegies of the impersonated user. /// public interface IPlatformBinder { /// /// Gets an array of the active connections managed /// by the platform binder. /// IPlatformChannel[] ActiveConnections { get; } /// /// Connects to an instance of the AgentService platform. Connection is /// performed asynchronously and by useing the given user credentials. /// /// user name /// user password /// platform TCP address (IP address, port) /// platform public key /// a connection channel with the platform. IPlatformChannel Connect(string user, string pwd, TCPAddress address, byte[] publicKey); /// /// Closes all the active connections managed by this /// binder. /// void CloseAllChannels(); } }