Sponsored Content
The Lounge What is on Your Mind? Happy SysAdmin Appreciation Day! Post 302543237 by linuxadmin on Saturday 30th of July 2011 03:45:04 AM
Old 07-30-2011
Belated wishes.. to all
 

5 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Sysadmin Day.

We have Labour day, Secretary Day Etc. But there is another day upcoming, which is System Administrator Day. (System Administrator Appreciation Day Friday - July 26th, 2002) http://www.sysadminday.com/ " Nice to hear that all our hardworks are getting noticed " :cool: (2 Replies)
Discussion started by: killerserv
2 Replies

2. What is on Your Mind?

Happy turkey day!

Hello all, Happy turkey day! I have no questions at this time. (1 Reply)
Discussion started by: mskcc
1 Replies

3. Red Hat

Happy Document Freedom Day

Document Freedom Day (DFD) is a global grassroots effort* to promote and build awareness of the importance of free document formats in particular and open standards in general.* If you have ever received a document from a friend that your software could not open, then you know the frustration of... (0 Replies)
Discussion started by: Linux Bot
0 Replies

4. News, Links, Events and Announcements

Sysadmin Day Meetup in NYC

Hi All, I just joined this forum, and I think its great! I wanted to let you know in honor of Systems Administrator Appreciation Day (which is next Friday, as you probably know), I'm organizing a meetup in New York City to celebrate. I've made a page with more information here: ... (0 Replies)
Discussion started by: MPSimmons
0 Replies

5. What is on Your Mind?

Alita Battle Angel - Happy Valentines Day

Just saw Alita Battle Angel with my Valentine and we really liked it. Hope many will go see it so they will make a sequel. https://www.unix.com/members/1-albums221-picture1089.jpg (0 Replies)
Discussion started by: Neo
0 Replies
FtpOptions(3)						     Library Functions Manual						     FtpOptions(3)

NAME
FtpOptions - Set connection options. SYNOPSIS
#include <ftplib.h> int FtpOptions(int opt, long val, netbuf *nControl); PARAMETERS
opt Specifies the option to change. Valid options are FTPLIB_CONNMODE, FTPLIB_CALLBACK, FTPLIB_IDLETIME, FTPLIB_CALLBACKARG, and FTPLIB_CALLBACKBYTES. val Specifies the new value for the option. The value may need to by cast to a long. nControl A handle returned by FtpConnect()or FtpAccess(). DESCRIPTION
FtpOptions() changes the options for a connection handle. A data connection inherits the options assigned to the control connection it is created from. Callbacks are only called on file data connections. The following options and values are recognized.OptionValueFTPLIB_CONNMODE Specifies the connection mode. Either FTPLIB_PASSIVE or FTPLIB_PORT.FTPLIB_CALLBACK Specifies the address of a user callback routine.FTPLIB_IDLETIME Specifies the socket idle time in milliseconds that triggers calling the user's callback routine.FTPLIB_CALLBACKARG Specifies an argument to pass to the user's callback rou- tine.FTPLIB_CALLBACKBYTES Specifies the number of bytes to transfer between calls to the user's callback routine. The connection mode tells ftplib if it should use PASV or PORT to establish data connections. The default is specified as a build option. The user's callback routine is specified as:.sp typedef int (*FtpCallback)(netbuf *nControl, int xfered, void *arg); nControlis the data connection in use. xferedspecifies how many bytes of data have been transferred on the connec- tion.argis the value specified with option FTPLIB_CALLBACKARG. The user can request to be called back on either of two events. If the user wishes to be called when the data socket is idle for some period of time, use FTPLIB_IDLETIME and pass the time in mil- liseconds. If the user wishes to be called when a certain amount of data has been transferred, use FTPLIB_CALLBACKBYTES and pass the minimum number of bytes to transfer between callbacks. When using this option, ftplib keeps track of the number of bytes transferred and calls the user once the specified number of bytes or more has been transferred. It then resets the count to 0 and starts again. If the user wishes to continue the transfer, the callback routine should return true (non-zero). It can abort the transfer by return zero. RETURN VALUE
Returns 1 if a valid option was specified and the value is legal. Otherwise, returns 0. FTPlib 24 June 1998 FtpOptions(3)
All times are GMT -4. The time now is 02:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy