YuQing
|
f136821c0d
|
getIpaddrByNameEx: IPv4 has priority over IPv6
|
2025-09-10 15:05:15 +08:00 |
YuQing
|
ec2db7cd33
|
replace sprintf and snprintf as necessary
|
2025-08-07 19:55:41 +08:00 |
YuQing
|
70f6ad56ed
|
getIpaddrByName: normalize ip addr when input addr is IPv4 or IPv6
|
2025-06-19 16:13:10 +08:00 |
YuQing
|
13fc696432
|
conn_pool_get_connection_ex add parameter: shared
|
2025-01-27 10:55:26 +08:00 |
YuQing
|
fef0a4a7f3
|
adapt to FreeBSD 13
|
2024-05-19 11:11:42 +08:00 |
YuQing
|
226fd0d378
|
format ip address for IPv6
|
2024-03-05 10:58:09 +08:00 |
YuQing
|
02f4659a32
|
log IPv6 address and port gracefully
|
2023-12-25 17:01:43 +08:00 |
YuQing
|
78caf9224b
|
replace inet_ntop to getnameinfo for IPv6
|
2023-12-01 11:31:26 +08:00 |
YuQing
|
dd77da144f
|
field socket_domain rename to af
|
2023-11-29 18:35:00 +08:00 |
YuQing
|
700a5bcaec
|
replace type in_addr_t to in_addr_64_t
|
2023-11-24 15:25:14 +08:00 |
YuQing
|
4eb30adb1a
|
code adjust for pull request #47
|
2023-11-23 15:40:58 +08:00 |
sunqiangwei1988
|
718906e477
|
Added: 增加IPv6支持
1、将IP_ADDRESS_SIZE的值由16修改为INET6_ADDRSTRLEN(46)。
2、新定义in_addr_64结构体替换in_addr结构体,以支持IPv6地址长度。
3、将connection_pool相关文件的socket_domain预设值由AF_INET修改为AF_UNSPEC。
4、增加IPv6的本地回环地址判断。
5、新增从字符串中解析IP地址和端口号方法(支持IPv4和IPv6)。
6、sockopt增加IPv6的支持
|
2023-11-02 10:13:42 +08:00 |
YuQing
|
05a694df77
|
get full mac address of infiniband NIC under Linux
|
2023-08-27 14:54:51 +08:00 |
YuQing
|
4df1107fa3
|
add function fc_safe_writev
|
2023-05-29 18:15:59 +08:00 |
YuQing
|
8ab3420bce
|
add function tcp_socket_connected
|
2022-12-30 17:18:28 +08:00 |
YuQing
|
7289215470
|
sockopt.[hc]: getIpAndPort support ipv6
|
2022-10-17 15:58:27 +08:00 |
YuQing
|
599d0f1446
|
add global var g_set_cloexec and macro FC_SET_CLOEXEC
|
2022-06-25 11:23:43 +08:00 |
YuQing
|
4a7d852409
|
correct O_CLOEXEC to FD_CLOEXEC for F_SETFL
|
2022-06-25 09:22:25 +08:00 |
YuQing
|
e254b8e1d3
|
open file with flag O_CLOEXEC
|
2022-06-24 18:52:39 +08:00 |
YuQing
|
3331b927b3
|
add function log_try_init2
|
2022-02-14 09:41:21 +08:00 |
YuQing
|
e9d186ce99
|
make.sh: generate macros for dirent fields
|
2022-02-10 22:18:53 +08:00 |
YuQing
|
3f20211a52
|
add const modifier for unification
|
2022-02-01 21:30:47 +08:00 |
YuQing
|
a19a0071db
|
sockopt.[hc] support tcpwritev and tcpreadv
|
2022-01-31 17:03:42 +08:00 |
YuQing
|
505893dc4c
|
change include <sys/poll.h> to #include <poll.h>
|
2022-01-28 18:16:28 +08:00 |
YuQing
|
0cd65f088c
|
tcp_quick_ack option for Linux
|
2020-12-06 16:59:09 +08:00 |
YuQing
|
d54007f79b
|
check poll result for POLLHUP and POLLERR
|
2020-10-25 20:42:53 +08:00 |
YuQing
|
56a5ac4f92
|
modify license to LGPLv3 and copyright
|
2020-10-14 11:03:46 +08:00 |
YuQing
|
7d5512682b
|
fixed printf format for port
|
2020-09-27 08:53:57 +08:00 |
YuQing
|
082a322f3d
|
change port type to uint16_t
|
2020-09-27 08:46:46 +08:00 |
YuQing
|
a749b84ce2
|
sockopt.[hc]: add function asyncconnectserverbyip
|
2020-09-06 18:49:15 +08:00 |
YuQing
|
c2837fde5f
|
add functions getIpAndPort and getPeerIpAndPort
|
2020-03-26 11:36:44 +08:00 |
YuQing
|
89ad53974f
|
add uniq server addresses
|
2020-02-19 15:49:39 +08:00 |
YuQing
|
81e6455819
|
add tests/test_server_id_func.c
|
2020-02-15 20:55:57 +08:00 |
YuQing
|
938a6a7fac
|
modify website name
|
2019-11-23 10:03:54 +08:00 |
YuQing
|
aabc50c144
|
add .gitignore
|
2019-11-22 09:53:58 +08:00 |
YuQing
|
d32a72db1f
|
add function socketCreateEx2
|
2019-09-29 21:35:53 +08:00 |
YuQing
|
83f572820e
|
log more info when socket bind fail
|
2019-09-29 14:55:50 +08:00 |
YuQing
|
28d175523d
|
sockopt.[hc] support IPv6
|
2019-09-27 11:29:12 +08:00 |
YuQing
|
82eee4ddd0
|
func getifconfigs: get IPv6 address correctly
|
2019-09-26 10:00:02 +08:00 |
yuqing
|
722a944266
|
sockopt.c: add global variable try_again_when_interrupt
|
2018-07-31 16:46:05 +08:00 |
yuqing
|
0d13a2de17
|
sched_thread.h: add function sched_print_all_entries
|
2018-06-26 10:56:34 +08:00 |
yuqing
|
41db7d0bc2
|
move SET_SOCKOPT_NOSIGPIPE from sockopt.c to sockopt.h
|
2016-11-10 14:00:12 +08:00 |
yuqing
|
e552ad7e1d
|
fixbug for select
|
2016-09-08 15:43:24 +08:00 |
yuqing
|
39a6e7b656
|
setsockopt SO_NOSIGPIPE when nessary
|
2016-08-12 17:09:18 +08:00 |
liuwei
|
a6d00af752
|
memset sockaddr_in & sockaddr_in6
|
2016-05-24 18:00:26 +08:00 |
liuwei
|
96cfd0283a
|
add getIpaddrsByName() function
|
2016-05-23 14:20:44 +08:00 |
yuqing
|
299ac49055
|
id generator in php extension support multi instance
|
2016-05-19 15:50:45 +08:00 |
yuqing
|
3eb39e834c
|
connect by ip and connection pool support ipv6
|
2016-05-18 10:40:36 +08:00 |
yuqing
|
094f3900c1
|
inet_aton to inet_pton
|
2016-05-17 21:22:08 +08:00 |
Yu Qing
|
fa404e98df
|
add macro HAVE_USER_H
|
2016-02-19 14:56:38 +08:00 |