//
//  HostConfig.h
//  zhuxun
//
//  Created by 张建伟 on 15/3/18.
//  Copyright (c) 2015年 张建伟. All rights reserved.
//

#import <Foundation/Foundation.h>

#define USERDEFAULT_GROUP_HOST (@"USERDEFAULT_GROUP_HOST")
#define USERDEFAULT_GROUP_PORT (@"USERDEFAULT_GROUP_PORT")
#define GROUP_SERVER_VERSION_ROUTER (@"v1/servers")
//->http://120.26.126.129:6715/v1/servers

#define USERDEFAULT_GROUP_HOST (@"USERDEFAULT_GROUP_HOST")
#define USERDEFAULT_GROUP_PORT (@"USERDEFAULT_GROUP_PORT")


#define USERDEFAULT_GROUP_SERVER_IMAGE_STORAGE_HOST (@"USERDEFAULT_GROUP_SERVER_IMAGE_STORAGE_HOST")
#define USERDEFAULT_GROUP_SERVER_IMAGE_STORAGE_PORT (@"USERDEFAULT_GROUP_SERVER_IMAGE_STORAGE_PORT")
//->{"socket":{"host":"120.26.126.129","port":6714,"id":"120.26.126.129:6714","online":9,"type":"mix","ver":"3.2.0"},"storage":{"host":"120.26.126.129","port":6713}}

#define USERDEFAULT_APP_HOST (@"USERDEFAULT_APP_HOST")
#define USERDEFAULT_GROUP_SOCKET_HOST (@"USERDEFAULT_GROUP_SOCKET_HOST")
#define USERDEFAULT_GROUP_SOCKET_PORT (@"USERDEFAULT_GROUP_SOCKET_PORT")
#define ContentServer @"0578"
#define USERDEFAULT_ContentServer (@"USERDEFAULT_ContentServer")

#define USERDEFAULT_GROUP_STORAGE_HOST (@"USERDEFAULT_GROUP_STORAGE_HOST")
#define USERDEFAULT_GROUP_STORAGE_PORT (@"USERDEFAULT_GROUP_STORAGE_PORT")

#define USERDEFAULT_SOCKET_HOST (@"USERDEFAULT_SOCKET_HOST")
#define USERDEFAULT_SOCKET_PORT (@"USERDEFAULT_SOCKET_PORT")
#define USERDEFAULT_FILE_UP_SERVER_HOST (@"USERDEFAULT_FILE_UP_SERVER_HOST")
#define USERDEFAULT_FILE_UP_SERVER_PORT (@"USERDEFAULT_FILE_UP_SERVER_PORT")
#define USERDEFAULT_FILE_DOWN_SERVER_HOST (@"USERDEFAULT_FILE_DOWN_SERVER_HOST")
#define USERDEFAULT_FILE_DOWN_SERVER_PORT (@"USERDEFAULT_FILE_DOWN_SERVER_PORT")

#define USERDEFAULT_UPDATE_URL (@"USERDEFAULT_UPDATE_URL")
#define USERDEFAULT_INSTALL_URL (@"USERDEFAULT_INSTALL_URL")


#define UPDATE_URL      (@"UPDATE_URL")
#define GET_UPDATE_URL  [userDefaults objectForKey:UPDATE_URL]
#define APP_HOST        [userDefaults objectForKey:USERDEFAULT_APP_HOST]
#define SOCKET_HOST     [userDefaults objectForKey:USERDEFAULT_SOCKET_HOST]
#define SOCKET_PORT     [userDefaults objectForKey:USERDEFAULT_SOCKET_PORT]

#define FILE_UP_SERVER_HOST     [userDefaults objectForKey:USERDEFAULT_FILE_UP_SERVER_HOST]
#define FILE_UP_SERVER_PORT     [userDefaults objectForKey:USERDEFAULT_FILE_UP_SERVER_PORT]

#define FILE_DOWN_SERVER_HOST   [userDefaults objectForKey:USERDEFAULT_FILE_DOWN_SERVER_HOST]
#define FILE_DOWN_SERVER_PORT   [userDefaults objectForKey:USERDEFAULT_FILE_DOWN_SERVER_PORT]

@interface HostConfig : NSObject

@end
