FtpSize(3) Library Functions Manual FtpSize(3)NAME
FtpSize - Determine size of remote file.
SYNOPSIS
#include <ftplib.h>
int FtpSize(char *path, int *size, netbuf *nControl);
PARAMETERS
path A pointer to a buffer where the result should be returned.
size A pointer to an int where the size will be returned.
nControl
A handle returned by FtpConnect().
DESCRIPTION
FtpSize() attempts to determine the size of a remote file.
RETURN VALUE
If a good response is received and the size is successfully parsed out of the result, 1 is returned. Otherwise, 0 is returned.
Some servers may not support the SIZE command. If this request fails, the size may be available in the response to a RETR (FtpOpen()with
typ=FTPLIB_FILE_READ).
FTPlib 20 June 1998 FtpSize(3)
Check Out this Related Man Page
mexchange(9F) Kernel Functions for Drivers mexchange(9F)NAME
mexchange - Exchange one message for another
SYNOPSIS
#include <sys/stream.h>
#include <sys/strsun.h>
mblk_t *mexchange(queue_t *wq, mblk_t *mp, size_t size,
uchar_t type, int32_t primtype);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
wq Optionally, write queue associated with the read queue to be used on failure (see below).
mp Optionally, the message to exchange.
size Size of the returned message.
type Type of the returned message.
primtype Optionally, a 4 byte value to store at the beginning of the returned message.
DESCRIPTION
The mexchange() function exchanges the passed in message for another message of the specified size and type.
If mp is not NULL, is of at least size bytes, and has only one reference (see dupmsg(9F)), mp is converted to be of the specified size and
type. Otherwise, a new message of the specified size and type is allocated. If allocation fails, and wq is not NULL, merror(9F) attempts to
send an error to the stream head.
Finally, if primtype is not -1 and size is at least 4 bytes, the first 4 bytes are assigned to be primtype. This is chiefly useful for
STREAMS-based protocols such as DLPI and TPI which store the protocol message type in the first 4 bytes of each message.
RETURN VALUES
A pointer to the requested message is returned on success. NULL is returned on failure.
CONTEXT
This function can be called from user, kernel or interrupt context.
SEE ALSO dupmsg(9F), merror(9F)
STREAMS Programming Guide
SunOS 5.11 9 June 2004 mexchange(9F)
When i tyr this, it gives me a syntax error...i tried removing quotes,removing spaces,replacing -eq with '='.. Can somebody suggest that is the problem?
if ]; then (4 Replies)
Hello Brothers,
I am new in shell script.I need a shell script that will run in Linux Server. Script will connect to windows FTP server before connection script will check the connection from linux server to windows server, if connection is ok then show a message and get specific file and... (34 Replies)