File Transfer over Sockets


 
Thread Tools Search this Thread
Top Forums Programming File Transfer over Sockets
# 8  
Old 01-08-2009
It's ok :-) . Every help i can get is useful :-)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File transfer

When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?. Please advise (3 Replies)
Discussion started by: sudhainit
3 Replies

2. Shell Programming and Scripting

File transfer script

Hi, I need a shell script to transfer a file from one server(unix box) to another server(windows box). I have the details of the source and destination Ip's. source path : /home/UNIX/server filename:abc.txt Destination folder: D:/UNIX/test I am using AIX server. Type of shell :... (1 Reply)
Discussion started by: NareshN
1 Replies

3. Shell Programming and Scripting

Avoiding file overwrite during file transfer using scp

Hi, I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Discussion started by: dsa
14 Replies

4. Programming

File transfer in C

HI Can anyone provide me with codes for file transfer server to client or vice versa? Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming. Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies

5. Programming

Sending large file through sockets

Hello, I am trying to send a file (1 MB) through sockets and for some reason I am getting segmentation fault message and receiving in the server an incomplete file. The current file is about 3 pages long and need to send it from the client to the server. I've tried malloc with free(), I am now... (8 Replies)
Discussion started by: sfcddm1
8 Replies

6. Programming

Problem in file transfer using sockets

Hai Friends I am writing a c program to transfer files from one system to another using TCP/IP socket programming.. My Recieve Program #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> extern int errno; extern char *sys_erlist; void... (2 Replies)
Discussion started by: collins
2 Replies

7. Shell Programming and Scripting

File transfer

Hi All, it might not be an sound question, i have two server like A and B.. i want to transfer file from B to A ..here i have some questions.. 1) do we need to create private and public key to connect..and transferring files...from B to A..? 2) i tried with scp options like... (2 Replies)
Discussion started by: Shahul
2 Replies

8. UNIX for Dummies Questions & Answers

Transfer the file

Dear all, Can anybody let me know how to automate a file transfer process to a remote m/c thru SFTP , automate means it will not prmpt for password. how i am going to achive this....and what all methods are available or tools are available ???? (2 Replies)
Discussion started by: manas_ranjan
2 Replies

9. Shell Programming and Scripting

file transfer

hi all how do i copy a file from one server to another thanks bkan77 (4 Replies)
Discussion started by: bkan77
4 Replies

10. Programming

Sockets and File descriptors

I am in a Systems programming class this semester, and our current project is to write a program utilizing sockets and fork. For the project, I decided to make my own instant messaging program. I have the code completed, but I have a problem that keeps old clients from communicating with new... (3 Replies)
Discussion started by: gstlouis
3 Replies
Login or Register to Ask a Question
Request Attributes(3)					       globus gass transfer					     Request Attributes(3)

NAME
Request Attributes - Functions int globus_gass_transfer_requestattr_init (globus_gass_transfer_requestattr_t *attr, char *url_scheme) int globus_gass_transfer_requestattr_destroy (globus_gass_transfer_requestattr_t *attr) Proxy Server int globus_gass_transfer_requestattr_set_proxy_url (globus_gass_transfer_requestattr_t *attr, char *proxy_url) int globus_gass_transfer_requestattr_get_proxy_url (globus_gass_transfer_requestattr_t *attr, char **proxy_url) Block Size int globus_gass_transfer_requestattr_set_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_t block_size) int globus_gass_transfer_requestattr_get_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_t *block_size) File Mode int globus_gass_transfer_requestattr_set_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_t file_mode) int globus_gass_transfer_requestattr_get_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_t *file_mode) Connection Reuse int globus_gass_transfer_requestattr_set_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_t connection_reuse) int globus_gass_transfer_requestattr_get_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_t *connection_reuse) Socket Send Buffer Size int globus_gass_transfer_requestattr_set_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, int sndbuf) int globus_gass_transfer_requestattr_get_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, int *sndbuf) Receive Socket Buffer int globus_gass_transfer_requestattr_set_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, int rcvbuf) int globus_gass_transfer_requestattr_get_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, int *rcvbuf) TCP Nodelay int globus_gass_transfer_requestattr_set_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_t nodelay) int globus_gass_transfer_requestattr_get_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_t *nodelay) Authorization int globus_gass_transfer_secure_requestattr_set_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_t mode, char *subject) int globus_gass_transfer_secure_requestattr_get_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_t *mode, char **subject) Detailed Description The GASS Transfer library uses Globus objects to provide an extensible way of creating protocol-specific attributes. Function Documentation int globus_gass_transfer_requestattr_init (globus_gass_transfer_requestattr_t *attr, char *url_scheme) Initialize a request attribute. This function initializes the attr to contain a new protocol-specific request attribute. Parameters: attr The attribute set to be initialized. url_scheme The scheme which which the attribute will be used for. Return values: GLOBUS_SUCCESS The attribute was successfully initialized. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER Either attr or url_scheme was GLOBUS_NULL. GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol module currently registered with GASS Transfer Library handles URLs with the specified url_scheme. int globus_gass_transfer_requestattr_destroy (globus_gass_transfer_requestattr_t *attr) Destroy a request attribute. This function destroys the attribute set specified in attr. Parameters: attr The attribute set to be destroyed. Return values: GLOBUS_SUCCESS The attribute was successfully destroyed. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_proxy_url (globus_gass_transfer_requestattr_t *attr, char *proxy_url) Set/Get the proxy server attribute for a GASS transfer attribute set. This attribute allows the user to use a proxy server to handle a URL request. Parameters: attr The attribute set to be modified proxy_url The new value of the proxy_url attribute. This may be GLOBUS_NULL if no proxy is to be used to access URLs with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_tblock_size) Set/Get the block size attribute for a GASS transfer attribute set. This attribute allows the user to suggest a preferred block size of a server to handle a URL request. Parameters: attr The attribute set to query or modify. block_size The data block size that should be used to process requests with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_tfile_mode) Set/Get the file mode attribute for a GASS transfer attribute set. This attribute allows the user to control whether the file will be transferred in ASCII or binary file mode. Parameters: attr The attribute set to query or modify. file_mode The value of the file mode attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_tconnection_reuse) Set/Get the connection reuse attribute for a GASS transfer attribute set. This attribute allows the user to control whether the connection associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. connection_reuse The value of the connection reuse attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, intsndbuf) Set/Get the send buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket send buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. sndbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, intrcvbuf) Set/Get the receive buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. rcvbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_set_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_tnodelay) Set/Get the TCP nodelay attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. nodelay The value of the nodelay attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_secure_requestattr_set_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_tmode, char *subject) Set/Get the authorization attribute for a GASS transfer attribute set. This attribute allows the user to control what type of authorization should be done when GASS Transfer requests are processed. Parameters: attr The attribute set to query or modify. mode The authorization mode to use. subject The subject name of the authorized subject, if mode is GLOBUS_GASS_TRANSFER_AUTHORIZE_SUBJECT Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_proxy_url (globus_gass_transfer_requestattr_t *attr, char **proxy_url) Set/Get the proxy server attribute for a GASS transfer attribute set. This attribute allows the user to use a proxy server to handle a URL request. Parameters: attr The attribute set to be modified proxy_url The new value of the proxy_url attribute. This may be GLOBUS_NULL if no proxy is to be used to access URLs with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_block_size (globus_gass_transfer_requestattr_t *attr, globus_size_t *block_size) Set/Get the block size attribute for a GASS transfer attribute set. This attribute allows the user to suggest a preferred block size of a server to handle a URL request. Parameters: attr The attribute set to query or modify. block_size The data block size that should be used to process requests with this attribute set. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_file_mode (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_file_mode_t *file_mode) Set/Get the file mode attribute for a GASS transfer attribute set. This attribute allows the user to control whether the file will be transferred in ASCII or binary file mode. Parameters: attr The attribute set to query or modify. file_mode The value of the file mode attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_connection_reuse (globus_gass_transfer_requestattr_t *attr, globus_bool_t *connection_reuse) Set/Get the connection reuse attribute for a GASS transfer attribute set. This attribute allows the user to control whether the connection associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. connection_reuse The value of the connection reuse attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_socket_sndbuf (globus_gass_transfer_requestattr_t *attr, int *sndbuf) Set/Get the send buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket send buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. sndbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_socket_rcvbuf (globus_gass_transfer_requestattr_t *attr, int *rcvbuf) Set/Get the receive buffer size attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. rcvbuf The value of the socket buffer. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_requestattr_get_socket_nodelay (globus_gass_transfer_requestattr_t *attr, globus_bool_t *nodelay) Set/Get the TCP nodelay attribute for a GASS transfer attribute set. This attribute allows the user to control the socket receive buffer associated with a GASS Transfer request should be reused after the file transfer has completed. Parameters: attr The attribute set to query or modify. nodelay The value of the nodelay attribute. Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. int globus_gass_transfer_secure_requestattr_get_authorization (globus_gass_transfer_requestattr_t *attr, globus_gass_transfer_authorization_t *mode, char **subject) Set/Get the authorization attribute for a GASS transfer attribute set. This attribute allows the user to control what type of authorization should be done when GASS Transfer requests are processed. Parameters: attr The attribute set to query or modify. mode The authorization mode to use. subject The subject name of the authorized subject, if mode is GLOBUS_GASS_TRANSFER_AUTHORIZE_SUBJECT Return values: GLOBUS_SUCCESS The attribute was successfully updated. GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER The attr was GLOBUS_NULL. Author Generated automatically by Doxygen for globus gass transfer from the source code. Version 7.2 Mon Apr 30 2012 Request Attributes(3)