This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

src/winsup/cinstall ChangeLog simpsock.cc simp ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	rbcollins@sources.redhat.com	2001-11-09 05:03:03

Modified files:
	winsup/cinstall: ChangeLog simpsock.cc simpsock.h nio-ftp.cc 
	                 nio-http.cc 

Log message:
	2001-11-08  Pavel Tsekov  <ptsekov@syntrex.com>
	
	* simpsock.h (SimpleSocket::invalidate): Declare new method.
	* simpsock.cc (SimpleSocket::invalidate): Implement new method.
	(SimpleSocket::SimpleSocket): Initialize buf to zero. Do not allocate
	memory for buf in the constructor.
	(SimpleSocket::~SimpleSocket): Use SimpleSocket::invalidate().
	(SimpleSocket::printf): Use SimpleSocket::write() instead of send().
	(SimpleSocket::write): Check object consistency - return -1 on error.
	invalidate() the object on socket write error.
	(SimpleSocket::fill): Check object consistency - return -1 on error.
	invalidate() the object if socket read error is encountered and there
	is no more data available in the internal read buffer.
	Allocate memory for the internal read buffer.
	(SimpleSocket::gets): Return zero (NULL pointer) if error is encountered
	during fill() and no more data is available in the internal read buffer.
	(SimpleSocket::read): Check object consistency - return -1 on error.
	invalidate() the object if socket read error is encountered.
	* nio-ftp.cc (NetIO_FTP:NetIO_FTP): Allow 125 as valid response code to
	the RETR command (fix for MS IIS ftp server 5 - possibly others too).
	(NetIO_FTP::ok): Check if the SimpleSocket object is ok().
	(NetIO_FTP::read): Use NetIO_FTP::ok().
	* nio-http.cc: Check for valid return value of SimpleSocket::gets().
	(NetIO_HTTP::ok): Check if the SimpleSocket object is ok().

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cinstall/ChangeLog.diff?cvsroot=src&r1=2.131&r2=2.132
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cinstall/simpsock.cc.diff?cvsroot=src&r1=2.3&r2=2.4
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cinstall/simpsock.h.diff?cvsroot=src&r1=2.2&r2=2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cinstall/nio-ftp.cc.diff?cvsroot=src&r1=2.5&r2=2.6
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cinstall/nio-http.cc.diff?cvsroot=src&r1=2.5&r2=2.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]