socket programming related.

2007-07-11 Thread hari . siri74
I have just started working in network programming using python.
written code for socket connection between client and server. Client
sent data to server for server processing (also server echoing back
rcvd data to client). When there is ("if no data": break ) no data
from client then the while loops break in server. The server program
process recvd data and my requirement is to send back the *results* to
client program for user sake. I did many trials but no use, as these
socket calls are blocking, i could not make my req.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: socket programming related.

2007-07-11 Thread hari . siri74
On Jul 11, 7:32 pm, [EMAIL PROTECTED] wrote:
> I have just started working in network programming using python.
> written code for socket connection between client and server. Client
> sent data to server for server processing (also server echoing back
> rcvd data to client). When there is ("if no data": break ) no data
> from client then the while loops break in server. The server program
> process recvd data and my requirement is to send back the *results* to
> client program for user sake. I did many trials but no use, as these
> socket calls are blocking, i could not make my req.

I just need to add a line. The while loop in server breaks when the
sockObj.close() happens in client program indicating there is no data
from client.

-- 
http://mail.python.org/mailman/listinfo/python-list


pattern match !

2007-07-10 Thread hari . siri74
Extract the application name with version from an RPM string like
hpsmh-1.1.1.2-0-RHEL3-Linux.RPM, i require to extract hpsmh-1.1.1.2-0
from above string. Sometimes the RPM string may be hpsmh-1.1.1.2-RHEL3-
Linux.RPM.

-- 
http://mail.python.org/mailman/listinfo/python-list