00001 using System;
00002
00003 namespace Client
00004 {
00008 public class ClientSettings {
00009 ClientControl client;
00013 public ClientSettings(ClientControl client) {
00014 this.client = client;
00015 }
00016
00020 public int ProxyListenPort {
00021 get { return proxyListenPortValue; }
00022
00023 set {
00024 proxyListenPortValue = value;
00025 client.connectionManager.Stop();
00026 client.connectionManager.Start();
00027 }
00028 }
00029 private int proxyListenPortValue = 8080;
00030
00034 public System.Net.IPAddress ProxyListenIP {
00035 get { return System.Net.IPAddress.Any; }
00036 }
00037
00041 public bool LogRequests {
00042 get { return true; }
00043 set {
00044
00045
00046 }
00047 }
00048
00049 public long CacheSize {
00050 get {return 4 * 1024 * 1024; }
00051 set {
00052 throw new NotImplementedException("CacheSize._Set not yet implemented");
00053 }
00054 }
00055
00056 public ushort MyClientID {
00057 get { return 1; }
00058 }
00059
00060 public ushort ServerID {
00061 get { return 0; }
00062 }
00063
00064 public bool PendingRequestsEnabled {
00065 get {return true; }
00066 set {throw new NotImplementedException("PendingRequestEnabled.Set not yet implemented");}
00067
00068 }
00069 }
00070 }