socks5_io

Creator: coderz1093

Last updated:

0 purchases

socks5_io Image
socks5_io Images

Languages

Categories

Add to Cart

Description:

socks5 io

socks5_io #

IO based socks5 implementation written in dart.
Install #
Add dependency to pubspec.yaml.
dependencies:
socks5_io: ^0.2.0
copied to clipboard
Quick Start #
final dialer = Socks5ClientDialer("127.0.0.1", 7890);
dialer.connect("example.org", 80).then((socks5) {

// handle remote server response
socks5.getReader().listen((buffer) {
print(ascii.decode(buffer));
socks5.close();
},
onError: (err) => {/* handle transfer error */},
onDone: () => {/* handle target closed */},
);

// send request (non-blocking)
socks5.getWriter().add(ascii.encode([
"GET / HTTP/1.1",
"Host: example.org:80",
"User-Agent: socks5_io/0.2.0",
"Accept: */*",
"\r\n",
].join("\r\n")));

}).catchError((err) {/* handle connect error */});
copied to clipboard
See more at folder example/.
Acknowledgement #


Golang Code Reference golang.org/x/net.


Pub Package socks5
But it is not null safety


LICENSE #
MIT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.