diff options
| author | ruki <[email protected]> | 2019-10-15 22:33:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-10-15 09:20:28 +0800 |
| commit | e915ad63a7f1a9fa4736472c60b0550cbd174361 (patch) | |
| tree | fdaaab30b6d174e4932cc59766dc350dcdff7726 /tests/modules/socket/tcp/echo_client.lua | |
| parent | 194434ebd67911dfd8352bc8c50b463b191e85c1 (diff) | |
move socket test files
Diffstat (limited to 'tests/modules/socket/tcp/echo_client.lua')
| -rw-r--r-- | tests/modules/socket/tcp/echo_client.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/modules/socket/tcp/echo_client.lua b/tests/modules/socket/tcp/echo_client.lua new file mode 100644 index 000000000..fce4ffcff --- /dev/null +++ b/tests/modules/socket/tcp/echo_client.lua @@ -0,0 +1,7 @@ +import("core.base.socket") + +function main() + local sock = socket.connect("127.0.0.1", 9001) + print(sock) + sock:close() +end |
