taskrambler
0.1.8
Web server and task management solution.
|
Go to the source code of this file.
Functions | |
int | serverPoll (Server) |
int | serverHandleAccept (Server, unsigned int) |
ssize_t | serverRead (Server, unsigned int) |
ssize_t | serverWrite (Server, unsigned int) |
void | serverCloseConn (Server, unsigned int) |
void | serverRun (Server this) |
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 3 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, see http://www.gnu.org/licenses/.
Definition in file run.c.
void serverCloseConn | ( | Server | , |
unsigned | int | ||
) |
Definition at line 31 of file close_conn.c.
Referenced by serverRun().
int serverHandleAccept | ( | Server | , |
unsigned | int | ||
) |
Definition at line 36 of file handle_accept.c.
References clone, logger, LOGGER_DEBUG, loggerLog(), socketAccept(), socketNonblock(), STREAM_FD, and STREAM_SSL.
Referenced by serverRun().
int serverPoll | ( | Server | ) |
put all closed fds to end of array in O(this->nfds)
Definition at line 34 of file poll.c.
References doShutdown, logger, LOGGER_CRIT, and loggerLog().
Referenced by serverRun().
ssize_t serverRead | ( | Server | , |
unsigned | int | ||
) |
Definition at line 31 of file server/read.c.
References logger, LOGGER_INFO, loggerLog(), and streamReaderRead().
Referenced by serverRun().
void serverRun | ( | Server | this | ) |
until error or signal
handle accept
handle accept SSL
handle reads
handle writes
Definition at line 36 of file run.c.
References doShutdown, logger, LOGGER_INFO, loggerLog(), serverCloseConn(), serverHandleAccept(), serverPoll(), serverRead(), and serverWrite().
Referenced by main().
ssize_t serverWrite | ( | Server | , |
unsigned | int | ||
) |
Definition at line 30 of file server/write.c.
References logger, LOGGER_INFO, loggerLog(), and streamWriterWrite().
Referenced by serverRun().