Git Product home page Git Product logo

proxysocket's Introduction

proxysocket

Portable C library for proxy client support, designed to be used as a drop-in replacement for connect().

Description

Cross-platform C library to establish TCP connections using a proxy.

Supports different connection methods:

  • no proxy (optionally allowing to bind to a local address and/or port)
  • HTTP proxy: only CONNECT method, only without authentication or basic authentication
  • SOCKS4/SOCKS4A: without IDENT functionality
  • SOCKS5 (RFC 1928): only username/password authentication or no authentication

Features:

  • Currently only support IPv4 TCP connections.
  • Returns a standard operating system SOCKET that can be manipulated by standard operating system functions like send() and recv().
  • Option to perform name lookups on the proxy server.
  • Supports daisy-chaining multiple proxies.
  • Can also be used for direct connections (without proxy) optionally binding to a local address and/or port.
  • Includes a demo program that uses ipify.org to detect the public IP address being used.
  • Portable across different platforms (tested on Windows, Linux, macOS).

Goals

Portability across platfoms (including Windows, Linux and macOS).

The returned SOCKET is a standard operating system connection handle as returned by socket(), allowing for an easy replacement of socket() and connect().

Support for IPv4 TCP connections only. Also, besides the supported proxy protocols, no specific protocol support (like HTTP or SSL) is included.

Dependancies

None

License

proxysocket is released under the terms of the MIT License (MIT), see LICENSE.txt.

proxysocket's People

Contributors

brechtsanders avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.