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

Go to the source code of this file.

Functions

ssize_t serverWrite (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/write.c.

Function Documentation

ssize_t serverWrite ( Server  this,
unsigned int  i 
)

Definition at line 30 of file server/write.c.

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

Referenced by serverRun().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function: