Unix Technical Forum

SCO libftp ftp_prconnect and ftp_login

This is a discussion on SCO libftp ftp_prconnect and ftp_login within the Sco Unix forums, part of the Unix Operating Systems category; --> I am attempting to programmatically FTP files to an from my server using the libftp libraries in C. Referring ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 11:05 AM
Thummp
 
Posts: n/a
Default SCO libftp ftp_prconnect and ftp_login

I am attempting to programmatically FTP files to an from my server
using the libftp libraries in C. Referring to the ftp_api(SLIB)
sample code found at:

http://docsrv.caldera.com:8507/en/ma..._api.SLIB.html.

I am able to connect to the client's FTP server, however when I
attempt to set the user using ftp_user( &ftpinfo, "user" ) , I get an
error "Connection reset by peer3". A careful 'snoop' of the clients
packets seems to indicate that even though the socket is open, nothing
is getting sent.

Just for kicks, here is the code I am using:
nRetVal = ftp_prconnect ( &ftpinfo, hostAddress );
fprintf(stderr, "nRetVal: %d - %s\n", nRetVal, ftpinfo.ftp_msg);

nRetVal = ftp_user ( &ftpinfo, "user" ); //<----ERROR HERE
fprintf(stderr, "nRetVal: %d - %s\n", nRetVal, ftpinfo.ftp_msg);

nRetVal = ftp_passwd ( &ftpinfo, "pass" );
fprintf(stderr, "nRetVal: %d - %s\n", nRetVal, ftpinfo.ftp_msg);

nRetVal = ftp_putfile ( &ftpinfo, fileName, fileName );
fprintf(stderr, "nRetVal: %d - %s\n", nRetVal, ftpinfo.ftp_msg);

Note that I can FTP to the very same machine on the command line with
no troubles. Thanks in advance for any help.

--Thummp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com