北京自动定饭脚本
节约粮食人人有则
北京自动定饭脚本
节约粮食人人有则
// Meetup is a micro proxy program that enables to connect two endpoints via TCP sockets. | |
// Either of endpoint may listen or connect. | |
// | |
// Example usage: | |
// - you have a faulty PHP application and you want to debug it with xdebug | |
// - xdebug can connect to your machine:9000, but you are behind NAT | |
// - so you run `meetup -listen1=:9000 -listen2=:9001` on the application server | |
// - and another `meetup -connect1=appserver:9001 -connect=localhost:9000` on your machine | |
// First instance listens two ports and when a connection arrives on both, it creates | |
// a bidirectional buffered pipe between the two. The other instance connects to |
package main | |
import ( | |
"database/sql" | |
"errors" | |
"fmt" | |
_ "github.com/bmizerany/pq" | |
"os" | |
"regexp" | |
"strings" |