[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Proxi
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Proxies Makefile,NONE,1.1 ProxyAttribute.cs,NONE,1.1 RealProxy.cs,NONE,1.1 |
Date: |
Thu, 17 Apr 2003 06:36:12 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Runtime/Remoting/Proxies
In directory
subversions:/tmp/cvs-serv31157/runtime/System/Runtime/Remoting/Proxies
Added Files:
Makefile ProxyAttribute.cs RealProxy.cs
Log Message:
Stub out a large number of classes under the "System.Runtime.Remoting"
namespace; add the "CONFIG_REMOTING" define to selection compilation of
remoting.
--- NEW FILE ---
# The build is done in "runtime", so cd up and use that Makefile.
all:
(cd ../../../..;make)
--- NEW FILE ---
/*
* ProxyAttribute.cs - Implementation of the
* "System.Runtime.Remoting.Proxies.ProxyAttribute" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Remoting.Proxies
{
#if CONFIG_REMOTING
using System.Runtime.Remoting.Contexts;
[AttributeUsage(AttributeTargets.Class)]
public class ProxyAttribute : Attribute
{
// Constructor.
public ProxyAttribute() {}
// Create a proxy instance.
[TODO]
public virtual MarshalByRefObject CreateInstance(Type serverType)
{
// TODO
return null;
}
// Create a real proxy.
[TODO]
public virtual RealProxy CreateProxy(ObjRef objRef, Type serverType,
Object serverObject,
Context serverContext)
{
// TODO
return null;
}
}; // class ProxyAttribute
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Proxies
--- NEW FILE ---
/*
* RealProxy.cs - Implementation of the
* "System.Runtime.Remoting.Proxies.RealProxy" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Runtime.Remoting.Proxies
{
#if CONFIG_REMOTING
using System.Runtime.Serialization;
using System.Runtime.Remoting.Activation;
using System.Runtime.Remoting.Messaging;
public abstract class RealProxy
{
// Internal state.
private Type type;
private Object stubData;
// Constructor.
[TODO]
protected RealProxy()
{
// TODO
}
[TODO]
protected RealProxy(Type classToProxy)
{
// TODO
}
[TODO]
protected RealProxy(Type classToProxy, IntPtr stub, Object stubData)
{
// TODO
}
// Create an object reference of the specified type.
[TODO]
public virtual ObjRef CreateObjRef(Type requestedType)
{
// TODO
return null;
}
// Get the unmanaged IUnknown proxy instance.
[TODO]
public virtual IntPtr GetCOMIUnknown(bool fIsMarshalled)
{
// TODO
return IntPtr.Zero;
}
// Get the serialization data for this instance.
[TODO]
public virtual void GetObjectData(SerializationInfo info,
StreamingContext context)
{
// TODO
}
// Get the type being proxied by this instance.
public virtual Type GetProxyType()
{
return type;
}
// Get the stub data within a proxy.
public static Object GetStubData(RealProxy rp)
{
if(rp != null)
{
return rp.stubData;
}
else
{
return null;
}
}
// Get a transparent proxy for the current instance.
[TODO]
public virtual Object GetTransparentProxy()
{
// TODO
return null;
}
// Initialize a server object.
[TODO]
public IConstructionReturnMessage InitializeServerObject
(IConstructionCallMessage ctorMsg)
{
// TODO
return null;
}
// Invoke a message on the object underlying this proxy.
public abstract IMessage Invoke(IMessage msg);
// Set the unmanaged IUnknown information for this object.
[TODO]
public virtual void SetCOMIUnknown(IntPtr i)
{
// TODO
}
// Set the stub data for a particular proxy.
public static void SetStubData(RealProxy rp, Object stubData)
{
if(rp != null)
{
rp.stubData = stubData;
}
}
// Get a COM interface for a particular Guid on this object.
[TODO]
public virtual IntPtr SupportsInterface(ref Guid iid)
{
// TODO
return IntPtr.Zero;
}
// Attach this proxy to a remote server.
[TODO]
protected void AttachServer(MarshalByRefObject s)
{
// TODO
}
// Detach this proxy from a remote server.
[TODO]
protected MarshalByRefObject DetachServer()
{
// TODO
return null;
}
// Get the unwrapped server instance for this proxy.
[TODO]
protected MarshalByRefObject GetUnwrappedServer()
{
// TODO
return null;
}
}; // class RealProxy
#endif // CONFIG_REMOTING
}; // namespace System.Runtime.Remoting.Proxies
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Proxies Makefile,NONE,1.1 ProxyAttribute.cs,NONE,1.1 RealProxy.cs,NONE,1.1,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Channels BaseChannelObjectWithProperties.cs,NONE,1.1 BaseChannelSinkWithProperties.cs,NONE,1.1 BaseChannelWithProperties.cs,NONE,1.1 ChannelDataStore.cs,NONE,1.1 ChannelServices.cs,NONE,1.1 ClientChannelSinkStack.cs,NONE,1.1 IChannel.cs,NONE,1.1 IChannelDataStore.cs,NONE,1.1 IChannelReceiver.cs,NONE,1.1 IChannelReceiverHook.cs,NONE,1.1 IChannelSender.cs,NONE,1.1 IChannelSinkBase.cs,NONE,1.1 IClientChannelSink.cs,NONE,1.1IClientChannelSinkProvider.cs,NONE,1.1 IClientChannelSinkStack.cs,NONE,1.1IClientFormatterSink.cs,NONE,1.1 IClientFormatterSinkProvider.cs,NONE,1.1 IClientResponseChannelSinkStack.cs,NONE,1.1IServerChannelSink.cs,NONE,1.1 IServerChannelSinkProvider.cs,NONE,1.1IServerChannelSinkStack.cs,NONE,1.1 IServerFormatterSinkProvider.cs,NONE,1.1 IServerResponseChannelSinkStack.cs,NONE,1.1 ITransportHeaders.cs,NONE,1.1 Makefile,NONE,1.1 ServerChannelSinkStack.cs,NONE,1.1 ServerProcessing.cs,NONE,1.1 SinkProviderData.cs,NONE,1.1 TransportHeaders.cs,NONE,1.1
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001 ISoapXsd.cs,NONE,1.1 Makefile,NONE,1.1 SoapAnyUri.cs,NONE,1.1 SoapBase64Binary.cs,NONE,1.1 SoapDate.cs,NONE,1.1
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Channels BaseChannelObjectWithProperties.cs,NONE,1.1 BaseChannelSinkWithProperties.cs,NONE,1.1 BaseChannelWithProperties.cs,NONE,1.1 ChannelDataStore.cs,NONE,1.1 ChannelServices.cs,NONE,1.1 ClientChannelSinkStack.cs,NONE,1.1 IChannel.cs,NONE,1.1 IChannelDataStore.cs,NONE,1.1 IChannelReceiver.cs,NONE,1.1 IChannelReceiverHook.cs,NONE,1.1 IChannelSender.cs,NONE,1.1 IChannelSinkBase.cs,NONE,1.1 IClientChannelSink.cs,NONE,1.1IClientChannelSinkProvider.cs,NONE,1.1 IClientChannelSinkStack.cs,NONE,1.1IClientFormatterSink.cs,NONE,1.1 IClientFormatterSinkProvider.cs,NONE,1.1 IClientResponseChannelSinkStack.cs,NONE,1.1IServerChannelSink.cs,NONE,1.1 IServerChannelSinkProvider.cs,NONE,1.1IServerChannelSinkStack.cs,NONE,1.1 IServerFormatterSinkProvider.cs,NONE,1.1 IServerResponseChannelSinkStack.cs,NONE,1.1 ITransportHeaders.cs,NONE,1.1 Makefile,NONE,1.1 ServerChannelSinkStack.cs,NONE,1.1 ServerProcessing.cs,NONE,1.1 SinkProviderData.cs,NONE,1.1 TransportHeaders.cs,NONE,1.1
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Runtime/Remoting/Metadata/W3cXsd2001 ISoapXsd.cs,NONE,1.1 Makefile,NONE,1.1 SoapAnyUri.cs,NONE,1.1 SoapBase64Binary.cs,NONE,1.1 SoapDate.cs,NONE,1.1
- Index(es):