Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luo3house/dart_socks5_io
IO based socks5 library written in dart
https://github.com/luo3house/dart_socks5_io
dart-library dart-package socks5 socks5-client socks5-proxy
Last synced: about 2 months ago
JSON representation
IO based socks5 library written in dart
- Host: GitHub
- URL: https://github.com/luo3house/dart_socks5_io
- Owner: luo3house
- License: mit
- Created: 2022-11-09T14:14:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T11:23:10.000Z (12 months ago)
- Last Synced: 2024-04-16T08:48:28.385Z (9 months ago)
- Topics: dart-library, dart-package, socks5, socks5-client, socks5-proxy
- Language: Dart
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# socks5_io
[![Pub Version](https://img.shields.io/pub/v/socks5_io)](https://pub.dev/packages/socks5_io)
IO based socks5 implementation written in dart.
## Install
Add dependency to `pubspec.yaml`.
```yaml
dependencies:
socks5_io: ^0.2.0
```## Quick Start
```dart
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 */});
```See more at folder [`example/`](example/).
## Acknowledgement
- Golang Code Reference `golang.org/x/net`.
- [Pub Package `socks5`](https://pub.dev/packages/socks5)
But it is not null safety
## LICENSE
MIT