Skip to content

Automatically exported from code.google.com/p/portmap

Notifications You must be signed in to change notification settings

pccq2002/portmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#端口映射工具
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

About

Automatically exported from code.google.com/p/portmap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages