[EMAIL PROTECTED] wrote:
Dear all,
following are some piece of my code (mainly create a socket
connection to server and loop to receive data):
# function to receive data
def recv_for_sock(sock):
sock.settimeout(25)
while 1:
if sock is None:
return 1
try:
Dear all,
following are some piece of my code (mainly create a socket
connection to server and loop to receive data):
# function to create and return socket
def connect():
server_config = ('192.168.1.50', );
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try: