-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split socket into different modules for handling tcp and udp connections. This reduces complexety of the socket module.
- Loading branch information
Showing
9 changed files
with
583 additions
and
484 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-FileCopyrightText: 2024 Greenbone AG | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later WITH x11vnc-openssl-exception | ||
|
||
display("Start"); | ||
display("is function open_sock_tcp defined: ", defined_func("open_sock_tcp")); | ||
sock = open_sock_tcp(21, transport: 1); | ||
display("was socket created: ", !isnull(sock)); | ||
display("fd: ", sock); | ||
display("is function ftp_log_in defined: ", defined_func("ftp_log_in")); | ||
# Login data for ftp://ftp.dlptest.com/ provided by https://dlptest.com/ftp-test/ | ||
user = "dlpuser"; | ||
pass = "rNrKYTX9g7z3RgJRmxWuGHbeu"; | ||
display("login succeeded: ", ftp_log_in(user: user, pass: pass, socket: sock)); | ||
close(sock); | ||
display("end"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.