2018-07-30 Fred Gleason <fredg@paravelsystems.com>

* Refactored ripcd(8) to process UTF-8 strings correctly.
	* Fixed bugs in 'RDRip' that caused corruption of UTF-8 strings.
This commit is contained in:
Fred Gleason
2018-07-30 14:35:38 -04:00
parent 5482e87e23
commit 9769324828
7 changed files with 291 additions and 289 deletions

View File

@@ -22,17 +22,39 @@
RipcdConnection::RipcdConnection(int id,int fd)
{
socket=NULL;
istate=0;
argnum=0;
argptr=0;
auth=false;
socket=new RDSocket(id);
socket->setSocket(fd);
ripcd_id=id;
ripcd_authenticated=false;
accum="";
ripcd_socket=new QSocket();
ripcd_socket->setSocket(fd);
}
RipcdConnection::~RipcdConnection()
{
delete socket;
delete ripcd_socket;
}
int RipcdConnection::id() const
{
return ripcd_id;
}
QSocket *RipcdConnection::socket() const
{
return ripcd_socket;
}
bool RipcdConnection::isAuthenticated() const
{
return ripcd_authenticated;
}
void RipcdConnection::setAuthenticated(bool state)
{
ripcd_authenticated=state;
}