offbynull / portmapper

Java library that maps ports on NAT-enabled routers (supported protocols: UPnP-IGD/NAT-PMP/PCP).
Apache License 2.0
88 stars 17 forks source link

Adjust socket/process gateways #16

Closed offbynull closed 8 years ago

offbynull commented 8 years ago

First message should get an id to use Second message should be the connection

If you do this, it would simplify the code a bit.

Also, on IdentifiableError, don't close the process/socket. Keep the resource open until you explicitly issue a close.