Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sneurlax/socks_socket
SOCKS5 Socket wrapper in Dart 3. Now with SSL! Made for Foundation-Devices/tor and cypherstack/tor
https://github.com/sneurlax/socks_socket
android cross-platform dart flutter http https ios linux macos proxy socket socks5 ssl tor windows
Last synced: 23 days ago
JSON representation
SOCKS5 Socket wrapper in Dart 3. Now with SSL! Made for Foundation-Devices/tor and cypherstack/tor
- Host: GitHub
- URL: https://github.com/sneurlax/socks_socket
- Owner: sneurlax
- License: mit
- Created: 2023-09-20T20:48:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-19T19:24:48.000Z (9 months ago)
- Last Synced: 2024-10-27T20:06:27.199Z (2 months ago)
- Topics: android, cross-platform, dart, flutter, http, https, ios, linux, macos, proxy, socket, socks5, ssl, tor, windows
- Language: C++
- Homepage: https://github.com/sneurlax/socks_socket
- Size: 273 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# SOCKS sockets
[![Pub](https://img.shields.io/pub/v/socks_socket.svg)](https://pub.dev/packages/socks_socket)
[![GitHub](https://img.shields.io/github/license/stackdump/socks_socket)](SOCKS version 5 sockets for Dart and Flutter, *eg.* ElectrumX and/or Fulcrum over Tor via socket(s).
## Features
- Dart & Flutter 3.
- Support for SOCKS version 5 protocol.
- Supports ElectrumX and Fulcrum servers via socket(s).
- Async support for non-blocking network communication.
- Lightweight and minimal dependencies.## Getting Started
See `socks_socket.dart` itself for properties and methods and the example for reference.
```dart
import 'package:socks_socket/socks_socket.dart';// Instantiate a socks socket at localhost and on the port selected by the tor service.
var socksSocket = await SOCKSSocket.create(
proxyHost: InternetAddress.loopbackIPv4.address,
proxyPort: Tor.instance.port,
sslEnabled: true, // For SSL connections.
);// Connect to the socks instantiated above.
await socksSocket.connect();// Connect to bitcoin.stackwallet.com on port 50002 via socks socket.
//
// Note that this is an SSL example.
await socksSocket.connectTo('bitcoin.stackwallet.com', 50002);// Send a server features command to the socket, see method for more specific usage example.
await socksSocket.sendServerFeaturesCommand();
```