2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System / System.Net / EndPoint.cs
index 9078f4d1bdce5c574858c39858c245165ef2ea62..5e1d81f98dcbe49d3168c9e0659cebc110a70b19 100755 (executable)
@@ -2,35 +2,39 @@
 // System.Net.EndPoint.cs
 //
 // Author:
-//   Miguel de Icaza (miguel@ximian.com)
+//   Dick Porter (dick@ximian.com)
 //
 // (C) Ximian, Inc.  http://www.ximian.com
 //
 
+using System.Net.Sockets;
+
 namespace System.Net {
+       [Serializable]
+       public abstract class EndPoint {
 
-       public class EndPoint {
+               // NB: These methods really do nothing but throw
+               // NotSupportedException
+               
+               public virtual AddressFamily AddressFamily {
+                       get {
+                               throw new NotSupportedException();
+                       }
+               }
+               
                public virtual EndPoint Create (SocketAddress address)
                {
-                       return null;
+                       throw new NotSupportedException();
                }
 
                public virtual SocketAddress Serialize ()
                {
-                       return null;
+                       throw new NotSupportedException();
                }
 
                protected EndPoint ()
                {
                }
-
-               public virtual int AddressFamily {
-                       get {
-                               return 0;
-                       }
-               }
-
-               
        }
 }