summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-04-06 11:57:35 +0200
committerCedric Bail <cedric@osg.samsung.com>2018-04-24 09:03:45 -0700
commitad9c582af7ff2ac001216deca464a8ba7398f5d2 (patch)
treec0ac7ef1de4798aee1295ce8ff0c9338c783c673 /src/lib/ecore_con
parentce6abdbcd65ec202382c413bd056585cbe00d57b (diff)
Efl.Net.Dialer_*_ (from Efl.Net.Dialer_*.)
Ref https://phab.enlightenment.org/T6847 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.eo18
-rw-r--r--src/lib/ecore_con/efl_net_dialer_websocket.eo20
2 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_http.eo b/src/lib/ecore_con/efl_net_dialer_http.eo
index 4d18fe52f4..db63927a12 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.eo
+++ b/src/lib/ecore_con/efl_net_dialer_http.eo
@@ -1,6 +1,6 @@
1import efl_net_http_types; 1import efl_net_http_types;
2 2
3enum Efl.Net.Dialer.Http.Primary_Mode { 3enum Efl.Net.Dialer.Http_Primary_Mode {
4 [[Primary HTTP mode]] 4 [[Primary HTTP mode]]
5 auto, [[HTTP auto mode]] 5 auto, [[HTTP auto mode]]
6 download, [[HTTP download mode]] 6 download, [[HTTP download mode]]
@@ -71,20 +71,20 @@ class Efl.Net.Dialer.Http (Efl.Loop.Consumer, Efl.Net.Dialer, Efl.Io.Sizer) {
71 71
72 This property will change the behavior of @Efl.Io.Sizer: 72 This property will change the behavior of @Efl.Io.Sizer:
73 73
74 - If @Efl.Net.Dialer.Http.Primary_Mode.auto, then 74 - If @Efl.Net.Dialer.Http_Primary_Mode.auto, then
75 @Efl.Net.Dialer.Http.Primary_Mode.download or 75 @Efl.Net.Dialer.Http_Primary_Mode.download or
76 @Efl.Net.Dialer.Http.Primary_Mode.upload will be 76 @Efl.Net.Dialer.Http_Primary_Mode.upload will be
77 choosen based on the @.method: if "PUT", then it's 77 choosen based on the @.method: if "PUT", then it's
78 upload, otherwise it's download. 78 upload, otherwise it's download.
79 79
80 - If @Efl.Net.Dialer.Http.Primary_Mode.upload, applying 80 - If @Efl.Net.Dialer.Http_Primary_Mode.upload, applying
81 a new size with @Efl.Io.Sizer.resize or 81 a new size with @Efl.Io.Sizer.resize or
82 @Efl.Io.Sizer.size.set will specify the 82 @Efl.Io.Sizer.size.set will specify the
83 "Content-Length" to upload. If no size is previously 83 "Content-Length" to upload. If no size is previously
84 set, then the upload will happen in 84 set, then the upload will happen in
85 "Transfer-encoding: chunked". 85 "Transfer-encoding: chunked".
86 86
87 - If @Efl.Net.Dialer.Http.Primary_Mode.download, then 87 - If @Efl.Net.Dialer.Http_Primary_Mode.download, then
88 @Efl.Io.Sizer.size.get will report the 88 @Efl.Io.Sizer.size.get will report the
89 "Content-Length" provided by the server, if any. 89 "Content-Length" provided by the server, if any.
90 90
@@ -99,15 +99,15 @@ class Efl.Net.Dialer.Http (Efl.Loop.Consumer, Efl.Net.Dialer, Efl.Io.Sizer) {
99 [[The effective primary mode. 99 [[The effective primary mode.
100 100
101 This will return one of 101 This will return one of
102 @Efl.Net.Dialer.Http.Primary_Mode.download or 102 @Efl.Net.Dialer.Http_Primary_Mode.download or
103 @Efl.Net.Dialer.Http.Primary_Mode.upload. If "auto" 103 @Efl.Net.Dialer.Http_Primary_Mode.upload. If "auto"
104 was set (the default), then it will pick the best 104 was set (the default), then it will pick the best
105 based on the @.method in use. 105 based on the @.method in use.
106 ]] 106 ]]
107 } 107 }
108 set { } 108 set { }
109 values { 109 values {
110 primary_mode: Efl.Net.Dialer.Http.Primary_Mode; [[Primary HTTP mode]] 110 primary_mode: Efl.Net.Dialer.Http_Primary_Mode; [[Primary HTTP mode]]
111 } 111 }
112 } 112 }
113 113
diff --git a/src/lib/ecore_con/efl_net_dialer_websocket.eo b/src/lib/ecore_con/efl_net_dialer_websocket.eo
index d927474031..f87bed8edc 100644
--- a/src/lib/ecore_con/efl_net_dialer_websocket.eo
+++ b/src/lib/ecore_con/efl_net_dialer_websocket.eo
@@ -1,7 +1,7 @@
1import eina_types; 1import eina_types;
2import efl_net_http_types; 2import efl_net_http_types;
3 3
4enum Efl.Net.Dialer.Websocket.Streaming_Mode { 4enum Efl.Net.Dialer.Websocket_Streaming_Mode {
5 [[How to map WebSocket to EFL I/O Interfaces. 5 [[How to map WebSocket to EFL I/O Interfaces.
6 6
7 @since 1.19 7 @since 1.19
@@ -11,7 +11,7 @@ enum Efl.Net.Dialer.Websocket.Streaming_Mode {
11 text, [[@Efl.Io.Writer.write will result in @Efl.Net.Dialer.Websocket.text_send]] 11 text, [[@Efl.Io.Writer.write will result in @Efl.Net.Dialer.Websocket.text_send]]
12} 12}
13 13
14enum Efl.Net.Dialer.Websocket.Close_Reason { 14enum Efl.Net.Dialer.Websocket_Close_Reason {
15 [[Registered reasons for the CLOSE (opcode=0x8). 15 [[Registered reasons for the CLOSE (opcode=0x8).
16 16
17 These are the well known reasons, with some ranges being defined 17 These are the well known reasons, with some ranges being defined
@@ -38,12 +38,12 @@ enum Efl.Net.Dialer.Websocket.Close_Reason {
38 private_end = 4999, [[Applications can use range 4000-4999]] 38 private_end = 4999, [[Applications can use range 4000-4999]]
39} 39}
40 40
41struct Efl.Net.Dialer.Websocket.Closed_Reason { 41struct Efl.Net.Dialer.Websocket_Closed_Reason {
42 [[Close reason event payload. 42 [[Close reason event payload.
43 43
44 @since 1.19 44 @since 1.19
45 ]] 45 ]]
46 reason: Efl.Net.Dialer.Websocket.Close_Reason; [[Closing reason]] 46 reason: Efl.Net.Dialer.Websocket_Close_Reason; [[Closing reason]]
47 message: string; [[Textual closing reason message]] 47 message: string; [[Textual closing reason message]]
48} 48}
49 49
@@ -135,7 +135,7 @@ class Efl.Net.Dialer.Websocket (Efl.Loop.Consumer, Efl.Net.Dialer) {
135 close message, which will be reported as "closed,reason". 135 close message, which will be reported as "closed,reason".
136 ]] 136 ]]
137 params { 137 params {
138 reason: Efl.Net.Dialer.Websocket.Close_Reason; [[Reason for closing]] 138 reason: Efl.Net.Dialer.Websocket_Close_Reason; [[Reason for closing]]
139 message: string @optional; [[Additional closing message]] 139 message: string @optional; [[Additional closing message]]
140 } 140 }
141 } 141 }
@@ -174,9 +174,9 @@ class Efl.Net.Dialer.Websocket (Efl.Loop.Consumer, Efl.Net.Dialer) {
174 However this class can operate in streaming mode, 174 However this class can operate in streaming mode,
175 mapping each @Efl.Io.Writer.write to a @.binary_send if 175 mapping each @Efl.Io.Writer.write to a @.binary_send if
176 streaming_mode is set to 176 streaming_mode is set to
177 @Efl.Net.Dialer.Websocket.Streaming_Mode.binary, of 177 @Efl.Net.Dialer.Websocket_Streaming_Mode.binary, of
178 @.text_send if 178 @.text_send if
179 @Efl.Net.Dialer.Websocket.Streaming_Mode.text 179 @Efl.Net.Dialer.Websocket_Streaming_Mode.text
180 180
181 @Efl.Io.Reader.read may consume less then the whole 181 @Efl.Io.Reader.read may consume less then the whole
182 received message, in this case the rest of the message 182 received message, in this case the rest of the message
@@ -184,12 +184,12 @@ class Efl.Net.Dialer.Websocket (Efl.Loop.Consumer, Efl.Net.Dialer) {
184 SOCK_SEQPACKET + read(2)). 184 SOCK_SEQPACKET + read(2)).
185 185
186 By default, streaming is disabled 186 By default, streaming is disabled
187 (@Efl.Net.Dialer.Websocket.Streaming_Mode.disabled). 187 (@Efl.Net.Dialer.Websocket_Streaming_Mode.disabled).
188 ]] 188 ]]
189 get { } 189 get { }
190 set { } 190 set { }
191 values { 191 values {
192 streaming_mode: Efl.Net.Dialer.Websocket.Streaming_Mode; [[Streaming mode]] 192 streaming_mode: Efl.Net.Dialer.Websocket_Streaming_Mode; [[Streaming mode]]
193 } 193 }
194 } 194 }
195 195
@@ -309,7 +309,7 @@ class Efl.Net.Dialer.Websocket (Efl.Loop.Consumer, Efl.Net.Dialer) {
309 message,text: string; [[Received a text string message (opcode=0x1)]] 309 message,text: string; [[Received a text string message (opcode=0x1)]]
310 message,binary: ptr(const(Eina.Slice)); [[Received a binary message (opcode=0x2)]] 310 message,binary: ptr(const(Eina.Slice)); [[Received a binary message (opcode=0x2)]]
311 pong: string; [[Received a pong (opcode=0xA) with optional message/reason]] 311 pong: string; [[Received a pong (opcode=0xA) with optional message/reason]]
312 closed,reason: Efl.Net.Dialer.Websocket.Closed_Reason; [[Received a request to close the connection. It may be a reply/confirmation from a local request, see @.close_request, or some server-generated reason. After this point, no more messages are allowed to be sent and no more will be received. @Efl.Io.Closer.close will be called.]] 312 closed,reason: Efl.Net.Dialer.Websocket_Closed_Reason; [[Received a request to close the connection. It may be a reply/confirmation from a local request, see @.close_request, or some server-generated reason. After this point, no more messages are allowed to be sent and no more will be received. @Efl.Io.Closer.close will be called.]]
313 } 313 }
314 314
315 implements { 315 implements {