MargGraf

12

May 16th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import socket as gtx
  2. soft = gtx.socket(gtx.AF_INET, gtx.SOCK_STREAM)
  3. soft.bind(('',33454))
  4. soft.listen(1)
  5. con, adr = soft.accept()
  6. print(adr)
  7. con.close()
  8.  
  9.  
  10. import socket as gtx
  11. soft = gtx.socket(gtx.AF_INET, gtx.SOCK_STREAM)
  12. soft.commection(('',33454))
  13. soft.closse()
Advertisement
Add Comment
Please, Sign In to add comment