The network classes are now under http_network library, thus renamed the header file as ew_network.h .

This commit is contained in:
2016-10-14 16:46:26 +02:00
parent b8aee435dd
commit c74b9e0c45
2 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
/* /*
indexing indexing
description: "Functions used by the EiffelWeb httpd networking classes. " description: "Functions used by the EiffelWeb http networking classes. "
copyright: "Copyright (c) 2011-2016, Jocelyn Fiat, Eiffel Software and others" copyright: "Copyright (c) 2011-2016, Jocelyn Fiat, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[ source: "[
@@ -12,8 +12,8 @@ indexing
]" ]"
*/ */
#ifndef _ew_httpd_net_h_ #ifndef _ew_network_h_
#define _ew_httpd_net_h_ #define _ew_network_h_
#include "eif_config.h" #include "eif_config.h"

View File

@@ -81,7 +81,7 @@ feature {NONE} -- Externals
c_set_sock_recv_timeout (a_fd, a_level: INTEGER; a_timeout_seconds: INTEGER) c_set_sock_recv_timeout (a_fd, a_level: INTEGER; a_timeout_seconds: INTEGER)
-- C routine to set socket option `SO_RCVTIMEO' with `a_timeout_seconds' seconds. -- C routine to set socket option `SO_RCVTIMEO' with `a_timeout_seconds' seconds.
external external
"C inline use %"ew_httpd_net.h%"" "C inline use %"ew_network.h%""
alias alias
"[ "[
#ifdef SO_RCVTIMEO #ifdef SO_RCVTIMEO
@@ -105,7 +105,7 @@ feature {NONE} -- Externals
c_set_sock_send_timeout (a_fd, a_level: INTEGER; a_timeout_seconds: INTEGER) c_set_sock_send_timeout (a_fd, a_level: INTEGER; a_timeout_seconds: INTEGER)
-- C routine to set socket option `SO_SNDTIMEO' with `a_timeout_seconds' seconds. -- C routine to set socket option `SO_SNDTIMEO' with `a_timeout_seconds' seconds.
external external
"C inline use %"ew_httpd_net.h%"" "C inline use %"ew_network.h%""
alias alias
"[ "[
#ifdef SO_RCVTIMEO #ifdef SO_RCVTIMEO
@@ -131,7 +131,7 @@ feature {NONE} -- No-Exception network operation
-- External routine to read a `len' number of characters -- External routine to read a `len' number of characters
-- into buffer `buf' from socket `a_fd' with options `flags'. -- into buffer `buf' from socket `a_fd' with options `flags'.
external external
"C inline use %"ew_httpd_net.h%"" "C inline use %"ew_network.h%""
alias alias
"[ "[
recv((int) $a_fd, (char *) $buf, (int) $len, (int) $flags) recv((int) $a_fd, (char *) $buf, (int) $len, (int) $flags)
@@ -150,7 +150,7 @@ feature {NONE} -- No-Exception network operation
-- length `length' to socket `fd'. -- length `length' to socket `fd'.
-- Note: does not raise exception on error, but return error value as Result. -- Note: does not raise exception on error, but return error value as Result.
external external
"C inline use %"ew_httpd_net.h%"" "C inline use %"ew_network.h%""
alias alias
"[ "[
send((int) $a_fd, (char *) $buf, (int) $len, (int) 0) send((int) $a_fd, (char *) $buf, (int) $len, (int) 0)