#!/usr/bin/env python import array, socket import struct sVortex = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sVortex.connect(("vortex.labs.pulltheplug.org",5842)) raw = '' while len(raw) < 16: raw += sVortex.recv(16 - len(raw)) print len(raw) sVortex.close() numArr = struct.unpack("IIII",raw) print numArr