Code Monkey home page Code Monkey logo

portmap-2's Introduction

#端口映射工具
Introduction

portmap 主要是作为各个机器间端口映射的工具
Details

    * 使用epoll方式,支持高并发
    * 多线程支持,可配置,作为工作线程
    * 使用简单,只需发送待映射的端口到守护进程,守护进程会返回映射后的端口,即可使用 

Example

   1. make
   2. ./portmap //启动进程
   3. cd test 修改test1.c中相关变量

          addr: portmap server的地址 port: portmap server 的端口 request:是需要映射的地址和端口

              const char *addr = "10.60.1.124";
              unsigned int port = 5903;

              const char *request = "10.60.1.124:5905";

   4. make && ./test1

          正常情况下,会给你返回映射后的地址和端口 
		  
http://code.google.com/p/portmap/wiki/Introduction

portmap-2's People

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.