FtpServer.h
bool handleEprtRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1567
void wroteEarlyReply(const CommIoCbParams &io)
Definition: FtpServer.cc:1234
Http::Stream * handleUserRequest(const SBuf &cmd, SBuf ¶ms)
Definition: FtpServer.cc:1358
CBDATA_CHILD(Server)
Definition: CommCalls.h:92
void handleDataReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:943
void(Ftp::Server::* ReplyHandler)(const HttpReply *reply, StoreIOBuffer data)
a method handling an FTP response; selected by handleReply()
Definition: FtpServer.h:169
int userDataDone
Squid will send or has sent this final status code to the FTP client.
Definition: FtpServer.h:54
Transaction information shared among our FTP client and server jobs.
Definition: FtpServer.h:42
@ MissingUsername
static void AcceptCtrlConnection(const CommAcceptCbParams ¶ms)
accept a new FTP control connection and hand it to a dedicated Server
Definition: FtpServer.cc:242
int pipelinePrefetchMax() const override
returning N allows a pipeline of 1+N requests (see pipeline_prefetch)
Definition: FtpServer.cc:80
bool handlePortRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1491
void writeForwardedForeign(const HttpReply *reply)
Definition: FtpServer.cc:1143
bool handleCwdRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1621
bool handleFeatRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1406
void wroteReplyData(const CommIoCbParams &io)
called when we are done writing a chunk of the response data
Definition: FtpServer.cc:986
void handleFeatReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:812
void writeForwardedReply(const HttpReply *reply)
Definition: FtpServer.cc:1036
friend void StartListening()
accept connections on all configured ftp_ports
@ MissingHost
@ HugeRequest
bool handlePasvRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1413
@ MalformedCommand
void handleEprtReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:1059
void shovelUploadData()
shovel upload data from the internal buffer to the body pipe if possible
Definition: FtpServer.cc:202
Definition: forward.h:23
bool createDataConnection(Ip::Address cltAddr)
[Re]initializes dataConn for active data transfers. Does not connect.
Definition: FtpServer.cc:1432
time_t idleTimeout() const override
timeout to use when waiting for the next request
Definition: FtpServer.cc:86
@ InvalidUri
MasterState::Pointer master
info shared among our FTP client and server jobs
Definition: FtpServer.h:80
Definition: HttpRequest.h:48
bool handleDataRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1520
void replyDataWritingCheckpoint()
ClientStream checks after (actual or skipped) reply data writing.
Definition: FtpServer.cc:1004
void writeErrorReply(const HttpReply *reply, const int status)
writes FTP error response with given status and reply-derived error details
Definition: FtpServer.cc:1095
Definition: StoreIOBuffer.h:15
void calcUri(const SBuf *file)
computes uri member from host and, if tracked, working dir with file name
Definition: FtpServer.cc:345
void notePeerConnection(Comm::ConnectionPointer conn) override
called just before a FwdState-dispatched job starts using connection
Definition: FtpServer.cc:302
void handleReply(HttpReply *header, StoreIOBuffer receivedData) override
Definition: FtpServer.cc:778
@ UnsupportedCommand
Definition: client_side.h:79
Definition: MemBuf.h:23
Definition: CommCalls.h:113
void acceptDataConnection(const CommAcceptCbParams ¶ms)
Definition: FtpServer.cc:401
bool handleCdupRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1635
void maybeReadUploadData()
schedules another data connection read if needed
Definition: FtpServer.cc:109
void handleUploadReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:1029
Http::Stream * earlyError(const EarlyErrorKind eek)
creates a context filled with an error message for a given early error
Definition: FtpServer.cc:570
void noteBodyConsumerAborted(BodyPipe::Pointer ptr) override
Definition: FtpServer.cc:231
void userDataCompletionCheckpoint(int finalStatusCode)
Definition: FtpServer.cc:1809
Definition: SquidString.h:25
void callException(const std::exception &e) override
called when the job throws during an async call
Definition: FtpServer.cc:1750
virtual const char * status() const
internal cleanup; do not call directly
Definition: AsyncJob.cc:182
Definition: CommCalls.h:104
unsigned int listenForDataConnection()
Definition: FtpServer.cc:370
Definition: HttpReply.h:24
void handlePasvReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:881
bool handlePassRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1628
void readUploadData(const CommIoCbParams &io)
imports more upload data from the data connection
Definition: FtpServer.cc:168
Definition: Stream.h:72
bool checkDataConnPost() const
Check that client data connection is ready for immediate I/O.
Definition: FtpServer.cc:1692
void writeEarlyReply(const int code, const char *msg)
Definition: FtpServer.cc:476
bool writeControlMsgAndCall(HttpReply *rep, AsyncCall::Pointer &call) override
handle a control message received by context from a peer and call back
Definition: FtpServer.cc:1152
Definition: CommCalls.h:127
void processParsedRequest(Http::StreamPointer &context) override
start processing a freshly parsed request
Definition: FtpServer.cc:156
void writeForwardedReplyAndCall(const HttpReply *reply, AsyncCall::Pointer &call)
Definition: FtpServer.cc:1161
void handleErrorReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:934
void handleEpsvReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:1072
void writeCustomReply(const int code, const char *msg, const HttpReply *reply=nullptr)
Definition: FtpServer.cc:507
void clientPinnedConnectionClosed(const CommCloseCbParams &io) override
Our close handler called by Comm when the pinned connection is closed.
Definition: FtpServer.cc:316
bool handleUploadRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1534
void changeState(const Ftp::ServerState newState, const char *reason)
Definition: FtpServer.cc:529
bool originDataDownloadAbortedOnError
whether the origin data transfer aborted
Definition: FtpServer.h:204
void connectedForData(const CommConnectCbParams ¶ms)
Done establishing a data connection to the user.
Definition: FtpServer.cc:1703
void noteMoreBodySpaceAvailable(BodyPipe::Pointer) override
Definition: FtpServer.cc:222
@ MissingLogin
Definition: Address.h:42
void resetLogin(const char *reason)
clear client and server login-related state after the old login is gone
Definition: FtpServer.cc:336
bool handleEpsvRequest(String &cmd, String ¶ms)
Definition: FtpServer.cc:1596
bool(Ftp::Server::* RequestHandler)(String &cmd, String ¶ms)
a method handling an FTP command; selected by handleRequest()
Definition: FtpServer.h:156
void handlePortReply(const HttpReply *header, StoreIOBuffer receivedData)
Definition: FtpServer.cc:921
HttpReply::Pointer delayedReply
a response which writing was postponed until stopWaitingForOrigin()
Definition: FtpServer.h:207
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products