Tcpport

@rcrichton fixes #252 please review