summaryrefslogtreecommitdiffhomepage
path: root/LICENSE
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2004-01-27 02:04:59 +0000
committerRobey Pointer <robey@lag.net>2004-01-27 02:04:59 +0000
commitd5995709055c6319b4f02c322bb5b0bfc2c584b7 (patch)
treec428c7e4a931a8db312c20329ab06ace412c60b5 /LICENSE
parent27869f1d7ad953d2262b36e2692d784c906a40d2 (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-26]
Transport constructor can take hostname or address tuple part of an ongoing attempt to make "simple" versions of some of the API calls, so you can do common-case operations with just a few calls: Transport's constructor will now let you pass in a string or tuple instead of a socket-like object. if you pass in a string, it assumes the string is a hostname (with optional ":port" segment) and turns that into an address tuple. if you pass in a tuple, it assumes it's an address tuple. in both cases, it then creates a socket, connects to the given address, and then continues as if that was the socket passed in. the idea being that you can call Transport('example.com') and it will do the right thing.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions