- Timestamp:
- 05/27/2008 08:56:26 PM (6 months ago)
- Files:
-
- 1 modified
-
dotorg/trunk/html/beps/bep_0025.rst (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotorg/trunk/html/beps/bep_0025.rst
r11099 r11104 173 173 In Python, the cache tracker's address can be obtained using the following:: 174 174 175 ::176 177 175 import socket 178 176 … … 184 182 name = "bittorrent-tracker." + ".".join(names) 185 183 try: 186 print "looking up name ", name187 184 ip = socket.gethostbyname(name) 188 185 break … … 196 193 :: 197 194 198 '151.164.129.4'195 response='151.164.129.4' 199 196 200 197 The answer above is fictional since AT&T does not at this time