#include "config.h"
#include "defines.h"
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <time.h>
#include <gdome.h>
#include <sys/param.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include "semaphores.h"
#include "shm_locking.h"
#include "cf_pthread.h"
#include "hashlib.h"
#include "utils.h"
#include "configparser.h"
#include "readline.h"
#include "fo_server.h"
#include "serverlib.h"
#include "xml_handling.h"
#include "charconvert.h"
#include "archiver.h"
Go to the source code of this file.
Functions | |
| int | cf_register_protocol_handler (u_char *handler_hook, t_server_protocol_handler handler) |
| void | cf_register_thread (t_thread *t) |
| void | cf_unregister_thread (t_thread *t) |
| int | cf_push_server (int sockfd, struct sockaddr *addr, int size, t_worker handler) |
| int | cf_push_client (int connfd, t_worker handler) |
| void | cf_log (int mode, const u_char *file, int line, const u_char *format,...) |
| int | cf_set_us_up_the_socket (struct sockaddr_un *addr) |
| void * | cf_worker (void *arg) |
| int | cf_tokenize (u_char *line, u_char ***tokens) |
| void | cf_handle_request (int sockfd) |
| int | cf_read_posting (t_posting *p, int sock, rline_t *tsd) |
| void | cf_send_posting (int sock, u_int64_t tid, u_int64_t mid, int invisible) |
| t_posting * | cf_get_posting (t_thread *t, u_int64_t mid) |
| t_thread * | cf_get_thread (u_int64_t tid) |
| int | cf_shmdt (void *ptr) |
| void * | cf_shmat (int shmid, void *addr, int shmflag) |
| void | cf_generate_shared_memory () |
| void * | cf_generate_cache (void *arg) |
| void | cf_generate_list (t_string *str, int del) |
| void | cf_send_thread_list (int sockfd, int del) |
Definition in file serverlib.c.
|
|
This function generates the cache for the thread list
Definition at line 1265 of file serverlib.c. |
|
||||||||||||
|
This function generates a stringified thread list for caching
Definition at line 1312 of file serverlib.c. |
|
|
This function generates the refreshed shared memory segment Definition at line 1085 of file serverlib.c. |
|
||||||||||||
|
This function returns a posting from a thread
Definition at line 1015 of file serverlib.c. |
|
|
This function gets a thread from the thread list
Definition at line 1036 of file serverlib.c. |
|
|
Handler function to handle client sockets. This function calls the specified worker function
Definition at line 567 of file serverlib.c. |
|
||||||||||||||||||||||||
|
This function makes a log entry into the log file
Definition at line 285 of file serverlib.c. |
|
||||||||||||
|
This function adds a client to the client queque.
Definition at line 196 of file serverlib.c. |
|
||||||||||||||||||||
|
This function adds a server socket to the server sockets array
Definition at line 144 of file serverlib.c. |
|
||||||||||||||||
|
This function reads a posting in CFTP from the socket into the referenced posting structure.
Definition at line 816 of file serverlib.c. |
|
||||||||||||
|
This function registeres a CFTP handler
Definition at line 79 of file serverlib.c. |
|
|
This function registeres a thread in the global threads hash
Definition at line 101 of file serverlib.c. |
|
||||||||||||||||||||
|
This function sends a posting to the client
Definition at line 903 of file serverlib.c. |
|
||||||||||||
|
This function sends a "live" thread list
Definition at line 1400 of file serverlib.c. |
|
|
Function to create socket and bind it to the specified port
Definition at line 376 of file serverlib.c. |
|
||||||||||||||||
|
Wrapper function to the shmat() function. Used to log access to the shared memory segments
Definition at line 1076 of file serverlib.c. |
|
|
Wrapper function of the shmdt function. Used to log access to the shared memory segments
Definition at line 1061 of file serverlib.c. |
|
||||||||||||
|
This function tokenizes a CFTP line
Definition at line 527 of file serverlib.c. |
|
|
This function unregisteres a thread int he global threads hash
Definition at line 118 of file serverlib.c. |
|
|
Worker function for the CFTP
Definition at line 426 of file serverlib.c. |
1.3.5