SocketAddress.cs 678 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // System.Net.SocketAddress.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. namespace System.Net {
  10. public class SocketAddress {
  11. short family;
  12. int size;
  13. public SocketAddress (short family, int size)
  14. {
  15. this.family = family;
  16. this.size = size;
  17. }
  18. public SocketAddress (short family)
  19. {
  20. this.family = family;
  21. }
  22. public short Family {
  23. get {
  24. return family;
  25. }
  26. }
  27. public int Size {
  28. get {
  29. return size;
  30. }
  31. }
  32. [MonoTODO]
  33. public byte this [ int offset ] {
  34. get {
  35. // FIXME; Unimplemented.
  36. return 0;
  37. }
  38. set {
  39. // FIXME: Unimplemented.
  40. }
  41. }
  42. }
  43. }