This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Move to old-code

svn path=/old-code/; revision=156233
  • Loading branch information...
migueldeicaza committed Apr 27, 2010
1 parent 144b70b commit 87b5449c9d231cfe432b0ed0c149a366275f122f
Showing with 6,315 additions and 0 deletions.
  1. +2 −0 ginzu/.cvsignore
  2. +4 −0 ginzu/AUTHORS
  3. +29 −0 ginzu/ChangeLog
  4. +95 −0 ginzu/IceChannel.cs
  5. +382 −0 ginzu/IceChannelUtils.cs
  6. +112 −0 ginzu/IceClientChannel.cs
  7. +173 −0 ginzu/IceClientFormatterSink.cs
  8. +65 −0 ginzu/IceClientFormatterSinkProvider.cs
  9. +164 −0 ginzu/IceClientTransportSink.cs
  10. +65 −0 ginzu/IceClientTransportSinkProvider.cs
  11. +67 −0 ginzu/IceCollectionWrappers.cs
  12. +153 −0 ginzu/IceCore.cs
  13. +335 −0 ginzu/IceEndpoint.cs
  14. +251 −0 ginzu/IceExceptions.cs
  15. +108 −0 ginzu/IceManager.cs
  16. +109 −0 ginzu/IceObject.cs
  17. +263 −0 ginzu/IceProtocol.cs
  18. +604 −0 ginzu/IceProtocolReader.cs
  19. +632 −0 ginzu/IceProtocolWriter.cs
  20. +151 −0 ginzu/IceProxy.cs
  21. +202 −0 ginzu/IceReceiverDispatcher.cs
  22. +202 −0 ginzu/IceServerChannel.cs
  23. +102 −0 ginzu/IceServerFormatterSink.cs
  24. +68 −0 ginzu/IceServerFormatterSinkProvider.cs
  25. +115 −0 ginzu/IceServerTransportSink.cs
  26. +57 −0 ginzu/IceUtil.cs
  27. +21 −0 ginzu/LICENSE
  28. +57 −0 ginzu/Makefile
  29. +41 −0 ginzu/README
  30. +33 −0 ginzu/TODO
  31. +2 −0 ginzu/samples/.cvsignore
  32. +17 −0 ginzu/samples/Makefile
  33. +102 −0 ginzu/samples/expreval.cs
  34. +50 −0 ginzu/samples/hello-cb-server.cs
  35. +43 −0 ginzu/samples/hello-cb.cs
  36. +35 −0 ginzu/samples/hello-server.cs
  37. +40 −0 ginzu/samples/hello.cs
  38. +28 −0 ginzu/samples/ping-server.cs
  39. +34 −0 ginzu/samples/ping.cs
  40. +53 −0 ginzu/samples/proxytest.cs
  41. +586 −0 ginzu/slice2cs/Gen.cpp
  42. +92 −0 ginzu/slice2cs/Gen.h
  43. +340 −0 ginzu/slice2cs/LICENSE.GPL
  44. +199 −0 ginzu/slice2cs/Main.cpp
  45. +32 −0 ginzu/slice2cs/Makefile
View
@@ -0,0 +1,2 @@
+*.exe
+*.dll
View
@@ -0,0 +1,4 @@
+
+Vladimir Vukicevic
+Sparkle Studios, LLC
+<vladimir@sparklestudios.com>
View
@@ -0,0 +1,29 @@
+2003-09-02 Vladimir Vukicevic <vladimir@pobox.com>
+
+ * IceProtocolReader.cs: keep track of whether we've read any
+ classrefs or not, and if not, don't attempt to read a count
+ at the end of a message. There is no zero count in the
+ protocol if no classes are to be sent.
+
+ * IceProtocolWriter.cs: same as above; don't write a zero
+ count if there are no classes.
+
+ * IceServerChannel.cs: listen on IPAddress.Any, instead of
+ the endpoint address; the while endpoint scheme requires
+ some rework.
+
+ * samples/ping.cs, samples/ping-server.cs: rework to make
+ compatible with the Ice "latency" demo
+
+2003-08-31 Vladimir Vukicevic <vladimir@pobox.com>
+
+ * everything: fixed tabification
+
+ * Makefile: fixed build, added samples build
+
+2003-08-29 Vladimir Vukicevic <vladimir@pobox.com>
+
+ * removed old rule from Makefile
+
+ * initial import
+
View
@@ -0,0 +1,95 @@
+// -*- mode: csharp; c-basic-offset: 2; indent-tabs-mode: nil -*-
+//
+// IceChannel.cs
+//
+// Written by:
+// Vladimir Vukicevic <vladimir@sparklestudios.com>
+//
+// Copyright (C) 2003 Sparkle Studios, LLC
+//
+// This file is distributed under the terms of the license
+// agreement contained in the LICENSE file in the top level
+// of this distribution.
+//
+
+
+using System;
+using System.IO;
+using System.Collections;
+using System.Runtime.Remoting;
+using System.Runtime.Remoting.Proxies;
+using System.Runtime.Remoting.Messaging;
+using System.Runtime.Remoting.Channels;
+
+namespace Ice {
+
+ public class IceChannel
+ : IChannelReceiver, IChannelSender, IChannel
+ {
+ IceServerChannel _svrChannel;
+ IceClientChannel _cltChannel;
+
+ string name = "ice";
+
+ public IceChannel()
+ : this(0)
+ {
+ }
+
+ public IceChannel(int port) {
+ Ice.TcpEndpoint te = new Ice.TcpEndpoint ("localhost", port);
+ te.Incoming = true;
+ _svrChannel = new IceServerChannel (te);
+ _cltChannel = new IceClientChannel ();
+ }
+
+ public IceChannel (IDictionary props,
+ IClientChannelSinkProvider clientSinkProvider,
+ IServerChannelSinkProvider serverSinkProvider)
+ {
+ throw new NotImplementedException();
+ }
+
+ public object ChannelData {
+ get {
+ return _svrChannel.ChannelData;
+ }
+ }
+
+ public string ChannelName {
+ get {
+ return name;
+ }
+ }
+
+ public int ChannelPriority {
+ get {
+ return _svrChannel.ChannelPriority;
+ }
+ }
+
+ public IMessageSink CreateMessageSink (string url,
+ object remoteChannelData,
+ out string objectUri)
+ {
+ return _cltChannel.CreateMessageSink (url, remoteChannelData, out objectUri);
+ }
+
+ public string[] GetUrlsForUri (string objectUri) {
+ return _svrChannel.GetUrlsForUri (objectUri);
+ }
+
+ public string Parse (string url, out string objectUri) {
+ return _svrChannel.Parse (url, out objectUri);
+ }
+
+ public void StartListening (object data) {
+ _svrChannel.StartListening (data);
+ }
+
+ public void StopListening (object data) {
+ _svrChannel.StopListening (data);
+ }
+ }
+
+}
Oops, something went wrong.

0 comments on commit 87b5449

Please sign in to comment.