ftp_server_data.c File Reference

FTP data connection. More...

#include "ftp/ftp_server.h"
#include "ftp/ftp_server_data.h"
#include "ftp/ftp_server_transport.h"
#include "ftp/ftp_server_misc.h"
#include "path.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   FTP_TRACE_LEVEL
 

Functions

void ftpServerRegisterDataChannelEvents (FtpClientConnection *connection, SocketEventDesc *eventDesc)
 Register data connection events. More...
 
void ftpServerProcessDataChannelEvents (FtpClientConnection *connection, uint_t eventFlags)
 Data connection event handler. More...
 
error_t ftpServerOpenDataChannel (FtpClientConnection *connection)
 Open data connection. More...
 
void ftpServerAcceptDataChannel (FtpClientConnection *connection)
 Accept data connection. More...
 
void ftpServerWriteDataChannel (FtpClientConnection *connection)
 Write data to the data connection. More...
 
void ftpServerReadDataChannel (FtpClientConnection *connection)
 Read data from the data connection. More...
 
void ftpServerCloseDataChannel (FtpClientConnection *connection)
 Close data connection. More...
 

Detailed Description

FTP data connection.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2019 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneTCP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.6

Definition in file ftp_server_data.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   FTP_TRACE_LEVEL

Definition at line 32 of file ftp_server_data.c.

Function Documentation

◆ ftpServerAcceptDataChannel()

void ftpServerAcceptDataChannel ( FtpClientConnection connection)

Accept data connection.

Parameters
[in]connectionPointer to the client connection

Definition at line 362 of file ftp_server_data.c.

◆ ftpServerCloseDataChannel()

void ftpServerCloseDataChannel ( FtpClientConnection connection)

Close data connection.

Parameters
[in]connectionPointer to the client connection

Definition at line 731 of file ftp_server_data.c.

◆ ftpServerOpenDataChannel()

error_t ftpServerOpenDataChannel ( FtpClientConnection connection)

Open data connection.

Parameters
[in]connectionPointer to the client connection
Returns
Error code

Definition at line 267 of file ftp_server_data.c.

◆ ftpServerProcessDataChannelEvents()

void ftpServerProcessDataChannelEvents ( FtpClientConnection connection,
uint_t  eventFlags 
)

Data connection event handler.

Parameters
[in]connectionPointer to the client connection
[in]eventFlagsEvent to be processed

Definition at line 136 of file ftp_server_data.c.

◆ ftpServerReadDataChannel()

void ftpServerReadDataChannel ( FtpClientConnection connection)

Read data from the data connection.

Parameters
[in]connectionPointer to the client connection

Definition at line 622 of file ftp_server_data.c.

◆ ftpServerRegisterDataChannelEvents()

void ftpServerRegisterDataChannelEvents ( FtpClientConnection connection,
SocketEventDesc eventDesc 
)

Register data connection events.

Parameters
[in]connectionPointer to the client connection
[in]eventDescEvent to be registered

Definition at line 52 of file ftp_server_data.c.

◆ ftpServerWriteDataChannel()

void ftpServerWriteDataChannel ( FtpClientConnection connection)

Write data to the data connection.

Parameters
[in]connectionPointer to the client connection

Definition at line 450 of file ftp_server_data.c.