Re: Evaluation download - VC example doesn't al - WeOnlyDo Discussion board

Re: Evaluation download - VC example doesn't al (General questions)

by wodSupport, Friday, May 04, 2007, 02:46 (6414 days ago) @ Roy

Roy,

problem with that sample is that it sends 'Welcome' text over SSH layer - same layer where SFTP sends its packet, and it violates SFTP protocol because of it..

To keep explanation clear, empty out ServiceRequest function and ServiceStart functions in the sample code, and all will work ok.[code]void CwodSSHDComEvents::ServiceRequest(LPDISPATCH User, long Channel, long* ServiceType, BSTR* ServicePath, long* Action)
{
}

void CwodSSHDComEvents::ServiceStart(LPDISPATCH User, long Channel, long ServiceType, LPCTSTR ServiceName)
{
}[/code]
Hope this helps.

Kreso


Complete thread: