Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from socket import *
- from struct import *
- s = socket(AF_INET, SOCK_STREAM)
- s.connect(('localhost', 2999))
- dato=s.recv(1024)
- print dato
- num=dato[13:23]
- print num
- numint=int(num)
- little = pack("<I",numint)
- s.send(little)
- print s.recv(1024)
- s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement