SocketAddress.cs 665 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. public byte this [ int offset ] {
  33. get {
  34. // FIXME; Unimplemented.
  35. return 0;
  36. }
  37. set {
  38. // FIXME: Unimplemented.
  39. }
  40. }
  41. }
  42. }