Skip to content

Commit 2670d46

Browse files
author
ithewei
committed
v1.2.4
1 parent a0ffa88 commit 2670d46

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.6)
22

3-
project(hv VERSION 1.2.3)
3+
project(hv VERSION 1.2.4)
44

55
option(BUILD_SHARED "build shared library" ON)
66
option(BUILD_STATIC "build static library" ON)

base/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
├── htime.h 时间
2323
├── hversion.h 版本
2424
├── list.h 链表
25-
└── queue.h 队列
25+
├── queue.h 队列
26+
└── rbtree.h 红黑树
2627
2728
```

base/hversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ BEGIN_EXTERN_C
88

99
#define HV_VERSION_MAJOR 1
1010
#define HV_VERSION_MINOR 2
11-
#define HV_VERSION_PATCH 3
11+
#define HV_VERSION_PATCH 4
1212

1313
#define HV_VERSION_STRING STRINGIFY(HV_VERSION_MAJOR) "." \
1414
STRINGIFY(HV_VERSION_MINOR) "." \

docs/PLAN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
- mqtt client
1919
- redis client
20+
- async DNS
2021
- lua binding
2122
- js binding
2223
- hrpc = libhv + protobuf

event/hloop.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,20 +418,19 @@ HV_EXPORT void hio_close_upstream(hio_t* io);
418418

419419
// io1->upstream_io = io2;
420420
// io2->upstream_io = io1;
421-
// hio_setcb_read(io1, hio_write_upstream);
422-
// hio_setcb_read(io2, hio_write_upstream);
421+
// @see examples/socks5_proxy_server.c
423422
HV_EXPORT void hio_setup_upstream(hio_t* io1, hio_t* io2);
424423

425424
// @return io->upstream_io
426425
HV_EXPORT hio_t* hio_get_upstream(hio_t* io);
427426

428-
// @tcp_upstream: hio_create -> hio_setup_upstream -> hio_setcb_close(hio_close_upstream) -> hconnect -> on_connect -> hio_read_upstream
427+
// @tcp_upstream: hio_create_socket -> hio_setup_upstream -> hio_connect -> on_connect -> hio_read_upstream
429428
// @return upstream_io
430429
// @see examples/tcp_proxy_server.c
431430
HV_EXPORT hio_t* hio_setup_tcp_upstream(hio_t* io, const char* host, int port, int ssl DEFAULT(0));
432431
#define hio_setup_ssl_upstream(io, host, port) hio_setup_tcp_upstream(io, host, port, 1)
433432

434-
// @udp_upstream: hio_create -> hio_setup_upstream -> hio_read_upstream
433+
// @udp_upstream: hio_create_socket -> hio_setup_upstream -> hio_read_upstream
435434
// @return upstream_io
436435
// @see examples/udp_proxy_server.c
437436
HV_EXPORT hio_t* hio_setup_udp_upstream(hio_t* io, const char* host, int port);

0 commit comments

Comments
 (0)