mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-16 18:28:21 +01:00
Test method registration for IPv6 sockets
This commit is contained in:
parent
30d1aae140
commit
46736a3355
@ -617,7 +617,8 @@ end
|
|||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
test("method registration")
|
test("method registration")
|
||||||
test_methods(socket.tcp(), {
|
|
||||||
|
local tcp_methods = {
|
||||||
"accept",
|
"accept",
|
||||||
"bind",
|
"bind",
|
||||||
"close",
|
"close",
|
||||||
@ -637,9 +638,11 @@ test_methods(socket.tcp(), {
|
|||||||
"setsockname",
|
"setsockname",
|
||||||
"settimeout",
|
"settimeout",
|
||||||
"shutdown",
|
"shutdown",
|
||||||
})
|
}
|
||||||
|
test_methods(socket.tcp(), tcp_methods)
|
||||||
|
test_methods(socket.tcp6(), tcp_methods)
|
||||||
|
|
||||||
test_methods(socket.udp(), {
|
local udp_methods = {
|
||||||
"close",
|
"close",
|
||||||
"getpeername",
|
"getpeername",
|
||||||
"dirty",
|
"dirty",
|
||||||
@ -655,7 +658,9 @@ test_methods(socket.udp(), {
|
|||||||
"setpeername",
|
"setpeername",
|
||||||
"setsockname",
|
"setsockname",
|
||||||
"settimeout"
|
"settimeout"
|
||||||
})
|
}
|
||||||
|
test_methods(socket.udp(), udp_methods)
|
||||||
|
test_methods(socket.udp6(), udp_methods)
|
||||||
|
|
||||||
test("partial receive")
|
test("partial receive")
|
||||||
test_partialrecv()
|
test_partialrecv()
|
||||||
|
Loading…
Reference in New Issue
Block a user