mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 03:58: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_methods(socket.tcp(), {
|
||||
|
||||
local tcp_methods = {
|
||||
"accept",
|
||||
"bind",
|
||||
"close",
|
||||
@ -637,9 +638,11 @@ test_methods(socket.tcp(), {
|
||||
"setsockname",
|
||||
"settimeout",
|
||||
"shutdown",
|
||||
})
|
||||
}
|
||||
test_methods(socket.tcp(), tcp_methods)
|
||||
test_methods(socket.tcp6(), tcp_methods)
|
||||
|
||||
test_methods(socket.udp(), {
|
||||
local udp_methods = {
|
||||
"close",
|
||||
"getpeername",
|
||||
"dirty",
|
||||
@ -655,7 +658,9 @@ test_methods(socket.udp(), {
|
||||
"setpeername",
|
||||
"setsockname",
|
||||
"settimeout"
|
||||
})
|
||||
}
|
||||
test_methods(socket.udp(), udp_methods)
|
||||
test_methods(socket.udp6(), udp_methods)
|
||||
|
||||
test("partial receive")
|
||||
test_partialrecv()
|
||||
|
Loading…
Reference in New Issue
Block a user