/* * Soft: Perform a GET query to a remote HTTP/HTTPS server. * Set a timer to compute global remote server response * time. * * Part: layer4.c include file. * * Authors: Alexandre Cassen, * * 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. * * 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 * 2 of the License, or (at your option) any later version. * * Copyright (C) 2001-2017 Alexandre Cassen, */ #ifndef _LAYER4_H #define _LAYER4_H /* system includes */ #include #include #include #include #include #include #include /* local includes */ #include "scheduler.h" #include "main.h" enum connect_result { connect_error, connect_in_progress, connect_timeout, connect_success }; /* Prototypes defs */ extern int tcp_connect_thread(thread_t *); #endif