Coda Distributed File System
Loading...
Searching...
No Matches
Classes | Macros | Functions
tcpftp1.c File Reference
#include <rpc2/rpc2.h>
#include <rpc2/tcpftp.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include "codatunneld.private.h"
#include "rpc2.private.h"
#include "codatunnel.private.h"
Include dependency graph for tcpftp1.c:

Classes

struct  TCPFTP_Entry
 

Macros

#define TCPFTP_MAGIC   0x54434650L /* "TCPF" */
 
#define TCPFTP_CLIENT   1
 
#define TCPFTP_SERVER   2
 
#define TCPFTP_ROLE_SOURCE   0
 
#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)
 
long TCPFTP_Activate (void)
 

Macro Definition Documentation

◆ TCPFTP_CLIENT

#define TCPFTP_CLIENT   1

◆ TCPFTP_MAGIC

#define TCPFTP_MAGIC   0x54434650L /* "TCPF" */

◆ TCPFTP_ROLE_SINK

#define TCPFTP_ROLE_SINK   1

◆ TCPFTP_ROLE_SOURCE

#define TCPFTP_ROLE_SOURCE   0

◆ TCPFTP_SERVER

#define TCPFTP_SERVER   2

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_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 
)