1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/laozi2-concurrent-tcp-client

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
config.h 764 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
laozi2 Отправлено 23.12.2015 12:35 ceb6e48
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include <netinet/in.h>
typedef struct config_s config_t;
typedef struct connection_config_s connection_config_t;
typedef struct test_data_s test_data_t;
struct test_data_s {
u_char* start;
u_char* end;
};
struct connection_config_s {
unsigned int requests;
unsigned int sleep_ms;
unsigned retry:1;
unsigned random:1;
};
struct config_s {
char server_name[32];
char ip[16];
unsigned short port;
struct sockaddr_in server_addr;
socklen_t socklen;
unsigned int connection_pool_n;
test_data_t* test_data;
unsigned int test_data_n;
connection_config_t def_con_config;
connection_config_t *con_config;
};
#endif //_CONFIG_H_

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/laozi2-concurrent-tcp-client.git
git@api.gitlife.ru:oschina-mirror/laozi2-concurrent-tcp-client.git
oschina-mirror
laozi2-concurrent-tcp-client
laozi2-concurrent-tcp-client
master