taskrambler  0.1.8
Web server and task management solution.
server/read.c File Reference
#include <errno.h>
#include "server.h"
#include "logger.h"
#include "stream.h"
+ Include dependency graph for server/read.c:

Go to the source code of this file.

Functions

ssize_t serverRead (Server this, unsigned int i)
 

Detailed Description

Author
Georg Hopp

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 server/read.c.

Function Documentation

ssize_t serverRead ( Server  this,
unsigned int  i 
)

Definition at line 31 of file server/read.c.

References logger, LOGGER_INFO, loggerLog(), and streamReaderRead().

Referenced by serverRun().

32 {
33  int fd = (this->fds)[i].fd;
34 
35  if (NULL == (this->conns)[fd].worker) {
36  loggerLog(
37  this->logger,
39  "initialization error: NULL reader");
40  return -2;
41  }
42 
43  return streamReaderRead(
44  (this->conns)[fd].worker,
45  (this->conns)[fd].stream);
46 }
ssize_t streamReaderRead(void *, Stream)
Definition: reader.c:34
Logger logger
Definition: taskrambler.c:66
void loggerLog(void *, logger_level, const char *const,...)
Definition: i_logger.c:38
Definition: server.h:39

+ Here is the call graph for this function:

+ Here is the caller graph for this function: