Coda Distributed File System
Loading...
Searching...
No Matches
Classes | Macros | Functions
tcpftp.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <sys/socket.h>
#include <rpc2/se.h>
Include dependency graph for tcpftp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TcpFtpState
 

Macros

#define TCPFTP_ROLE_SOURCE   0 /* mirror CT_SOURCE / CT_SINK (codatunnel/ctp.h) */
 
#define TCPFTP_ROLE_SINK   1
 

Functions

uint64_t tcpftp_reglen (const struct SFTP_Descriptor *d, int role, uint64_t size)
 
int tcpftp_register_local (struct TcpFtpState *st, const struct sockaddr *peer, socklen_t plen, struct SFTP_Descriptor *d, int role, uint64_t in_cookie, uint64_t *out_cookie)
 
long tcpftp_finalize (struct TcpFtpState *st, struct SFTP_Descriptor *d, uint64_t cookie, int nowait)
 
size_t tcpftp_param_blocksize (void)
 
int tcpftp_pack_param_block (const uint64_t *cookie, unsigned char *buf, size_t maxlen, size_t *wrote)
 
int tcpftp_unpack_param_block (const unsigned char *buf, size_t len, uint64_t *cookie)
 
long TCPFTP_Activate (void)
 

Macro Definition Documentation

◆ TCPFTP_ROLE_SINK

#define TCPFTP_ROLE_SINK   1

◆ TCPFTP_ROLE_SOURCE

#define TCPFTP_ROLE_SOURCE   0 /* mirror CT_SOURCE / CT_SINK (codatunnel/ctp.h) */

Function Documentation

◆ TCPFTP_Activate()

long TCPFTP_Activate ( void  )

◆ tcpftp_finalize()

long tcpftp_finalize ( struct TcpFtpState st,
struct SFTP_Descriptor d,
uint64_t  cookie,
int  nowait 
)

◆ tcpftp_pack_param_block()

int tcpftp_pack_param_block ( const uint64_t *  cookie,
unsigned char *  buf,
size_t  maxlen,
size_t *  wrote 
)

◆ tcpftp_param_blocksize()

size_t tcpftp_param_blocksize ( void  )

◆ tcpftp_register_local()

int tcpftp_register_local ( struct TcpFtpState st,
const struct sockaddr *  peer,
socklen_t  plen,
struct SFTP_Descriptor d,
int  role,
uint64_t  in_cookie,
uint64_t *  out_cookie 
)

◆ tcpftp_reglen()

uint64_t tcpftp_reglen ( const struct SFTP_Descriptor d,
int  role,
uint64_t  size 
)

◆ tcpftp_unpack_param_block()

int tcpftp_unpack_param_block ( const unsigned char *  buf,
size_t  len,
uint64_t *  cookie 
)