Leandro Lanzieri
c74fa5367c
net/sock/util: Move configuration macros to 'CONFIG_' namespace
...
Macros that changed:
SOCK_SCHEME_MAXLEN -> CONFIG_SOCK_SCHEME_MAXLEN
SOCK_HOSTPORT_MAXLEN -> CONFIG_SOCK_HOSTPORT_MAXLEN
SOCK_URLPATH_MAXLEN -> CONFIG_SOCK_URLPATH_MAXLEN
2019-12-13 12:04:54 +01:00
Martine S. Lenders
de47681d03
sock_async: fix compile-time errors
2019-10-31 16:01:49 +01:00
Martine Lenders
f0b5eb04c1
sock: initial import of asynchronous event definitions
2019-10-30 13:23:31 +01:00
Aiman Ismail
ede7edd313
sys/net pkg/: document DTLS support in net_dtls
2019-08-27 16:41:39 +02:00
Aiman Ismail
fed72571ec
sys/net/sock: add sock_dtls API
2019-08-27 16:41:39 +02:00
Martine S. Lenders
9ba22083ee
sock_ip: fix documenation referring to UDP sock
2019-06-19 14:18:45 +02:00
Leandro Lanzieri
b9c1146e90
sys/net/sock_util: Accept null pointers in urlsplit
2019-06-12 10:03:11 +02:00
francisco
ef4481fba9
sock/util: add config group
2019-05-22 15:55:16 +02:00
7dc1b4f45d
sys/sock/util: allow overriding of SOCK_*_MAXLEN
2019-05-21 12:06:49 +02:00
b0309145f0
sock_util: Limit URL scheme size
2018-07-19 22:07:17 +02:00
6a81a4d587
sock_util: add missing includes
2018-07-18 17:43:59 +02:00
Hauke Petersen
bf8f8dfa67
net/sock_udp: add sock_udp_ep_equal()
2018-07-05 15:13:01 +02:00
Martine Lenders
a027684a1e
sock_dns: fix typo in doc
...
`s/fuction/function/` ;-)
2018-06-22 13:23:26 +02:00
Martine Lenders
a20639074a
sock_udp: define send error-state for full port pool
2018-06-20 14:51:17 +02:00
Martine Lenders
9e7cebae93
sock_udp: allow creation with ephemeral ports
...
This change allows the port for local endpoint to be zero 0. If this is
the case the `sock_udp_create()` function binds the object to an
ephemeral port.
2018-06-20 14:51:17 +02:00
Martine Lenders
2e93ba1c50
doc: Fix 'must not'/'may not' wording
...
I applied the following terminology and changed the wording in the doc
accordingly:
* must not: If the parameter is of the value it *must not* be it either
hits an assert or crashes the system.
* may not: The value can be that value, but the function will return an
error.
2017-12-19 09:00:12 +01:00
Martine Lenders
ce0d81c5c8
sock: specify invalid parameter error
2017-06-12 13:54:55 +02:00
Raul Fuentes
808b56c07f
sock/udp.h: Changed wiki syntax to doxygen
2017-05-30 20:48:41 +02:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
Martine Lenders
9fc95504c8
Merge pull request #6898 from rfuentess/udp_sock
...
sock/udp.h: Minor fix to example
2017-04-13 18:47:47 +02:00
7af03ab624
sys: net: introduce simple sock DNS client
2017-03-28 20:49:53 +02:00
2a955ad631
sys: net: sock: add utility functions
2017-03-28 19:16:27 +02:00
Oleg Hahm
0018cd7b01
sock: tcp: fix c&p mistake
2017-03-17 08:13:07 +01:00
Raul Fuentes
c169d66120
Adding missing variable to one example
2017-03-07 15:35:05 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Oleg Hahm
4f4214235b
timex: unambiguous time conversion macros
2017-01-19 13:18:08 +01:00
Emmanuel Baccelli
cab947b05a
fixed insconsistencies in the doc for sock
...
fixed insconsistency concerning headers needed
fixed insconsistency concerning headers needed
fixed insconsistency concerning headers needed
2016-11-29 21:28:49 +01:00
Martine Lenders
bd533dd785
gnrc_sock: move net/af.h include to sock_types.h
2016-11-18 12:33:01 +01:00
3b30d510bf
Merge pull request #5923 from miri64/sock/api/add-missing-func+doc
...
sock_tcp: Add missing function and doc
2016-10-17 16:04:32 +02:00
Martine Lenders
6e2f1c566b
sock_tcp: Add missing function and doc
2016-10-17 14:46:57 +02:00
Martine Lenders
b9330d462b
sock: Some formatting fixes
...
Follow-up on #5929
2016-10-12 17:55:48 +02:00
Martine Lenders
8c56c9031b
Merge pull request #5929 from kaspar030/sock_change_no_timeout_value
...
sock: change "no timeout" value from 0 to UINT32_MAX
2016-10-12 16:08:03 +02:00
aace13624b
sock: change "no timeout" value from 0 to UINT32_MAX
2016-10-12 15:19:16 +02:00
Martine Lenders
d4ba3bd184
sock: doc fixes
2016-10-11 10:24:45 +02:00
Martine Lenders
f93ab584d8
sock: make queue_array parameter a pointer
...
Since sock_tcp_t isn't defined at this moment (only declared) the
compiler is complaining about the use of an array in the parameter list
here.
sys/include/net/sock/tcp.h:119:32: error: array type has incomplete element type ‘sock_tcp_t {aka struct
sock_tcp}’
sock_tcp_t queue_array[], unsigned queue_len,
^
2016-10-07 15:06:38 +02:00
Martine Lenders
6c1e805f9e
sock: define behavior on invalid addresses
2016-10-06 21:56:19 +02:00
Martine Lenders
f4d39274fb
sock: doc fixes
2016-10-04 17:22:54 +02:00
Martine Lenders
09703e1fdf
fixup! sock: Introduction of new application layer API
...
Add more error classes
2016-09-02 19:02:33 +02:00
Martine Lenders
73861e2c15
fixup! sock: Introduction of new application layer API
...
Fix some typos
2016-08-25 17:55:11 +02:00
Martine Lenders
ce205afc57
fixup! sock: Introduction of new application layer API
...
sock_ip: Provide proto parameter to send in case sock == NULL.
2016-08-25 16:02:47 +02:00
Martine Lenders
002be06c79
fixup! sock: Introduction of new application layer API
...
sock_tcp: more error code specifications and fixes
2016-08-25 11:37:01 +02:00
Martine Lenders
777c8f77b6
fixup! sock: Introduction of new application layer API
...
Add `-ECONNABORT` return for sock_tcp_read and sock_tcp_write.
2016-08-24 19:25:14 +02:00
Martine Lenders
1f74eae424
fixup! sock: Introduction of new application layer API
...
Fix some typedefs
2016-08-22 17:03:52 +02:00
Martine Lenders
a41bc13767
fixup! sock: Introduction of new application layer API
...
Reword confusing out-parameter doc in create functions
2016-08-20 02:39:58 +02:00
Martine Lenders
a4fd05c6f6
fixup! sock: Introduction of new application layer API
...
Fix wrongly typedef'd endpoint
2016-08-20 02:33:32 +02:00
Martine Lenders
b24d9de9ae
fixup! sock: Introduction of new application layer API
2016-08-19 17:36:58 +02:00
Martine Lenders
01b0975072
fixup! sock: Introduction of new application layer API
2016-08-19 16:52:06 +02:00
Martine Lenders
6f06deff40
fixup! sock: Introduction of new application layer API
2016-08-19 16:17:35 +02:00
Martine Lenders
44af8765af
fixup! sock: Introduction of new application layer API
2016-08-19 15:33:00 +02:00
Martine Lenders
b71c2f334a
fixup! sock: Introduction of new application layer API
2016-08-19 15:27:15 +02:00
Martine Lenders
7ef177a8cb
sock: Introduction of new application layer API
...
This introduces a new alternative and better API to `conn`. It differs in the
following aspects:
* a common address type for both IPv4 and IPv6 addresses is introduced
* communication end-points are abstracted as end-point types `sock_x_ep_t`,
containing the address, its family, its port (if required for protocol) and
the interface identifier.
* All functions require some kind of state. Sending of datagrams to the same
source or replying to incoming datagrams is thus simplified
* TCP connection establishment was overall reworked: connected sockets and
listening sockets are now two distinct types. An accept on a listening socket
than yields a connected socket
2016-08-18 12:25:41 +02:00