Paul Szczepanek
addffcb1c4
capitalisation
2018-11-04 22:05:46 -06:00
Paul Szczepanek
30da67219f
Update WiFiInterface.h
2018-11-04 22:05:46 -06:00
Paul Szczepanek
f6000d3628
Update CellularBase.h
2018-11-04 22:05:46 -06:00
paul-szczepanek-arm
2f2cb1efd7
incorrect doc was copy pasted
...
replaced with copydoc instead
2018-11-04 22:05:46 -06:00
paul-szczepanek-arm
43c489e8a0
missing doxy
2018-11-04 22:05:46 -06:00
paul-szczepanek-arm
b581299a20
remove redundancy and maintainance overhead
2018-11-04 22:05:46 -06:00
paul-szczepanek-arm
e3f06997f6
return codes
2018-11-04 22:03:31 -06:00
paul-szczepanek-arm
2fda1c2385
doxygen fixes
2018-11-04 22:03:31 -06:00
Terence Zhang
119a2d434d
Fix the incorrect comment for set_blocking()
2018-11-02 19:49:59 -05:00
Michal Paszta
e1887a7738
TCPSocket accept refactored to close cleanly and icetea test added
...
Private constructor called in TCPSocket accept, when creating a new Socket.
Close() method calls moved "up" to InternetSocket.
InternetSocket::close() returns proper error code when no socket available.
Add TcpSocket::accept icetea tests.
Deleting sockets moved to teardown.
2018-11-02 19:49:59 -05:00
Amanda Butler
57d5473e2f
Edit UDPSocket.h
...
Edit file, mostly for minor spelling to existing text.
2018-11-02 19:49:57 -05:00
paul-szczepanek-arm
a94a6596a4
doxy cleanup
2018-11-02 19:49:57 -05:00
Amanda Butler
d94271e65b
Edit InternetSocket.h
...
Edit file, mostly for branding, commas and U.S. spelling.
2018-11-02 19:49:57 -05:00
paul-szczepanek-arm
1066909f71
update internetsocket docs
2018-11-02 19:49:57 -05:00
Amanda Butler
37dba36ce8
Add comma to SocketAddress.h
...
Add comma to existing text.
2018-11-02 19:49:55 -05:00
Conrad Braam
66a0a58e7a
Explain default port number, and construction
2018-11-02 19:49:55 -05:00
Taiki
99aa1dca0a
Use the parsing status as a way to detect if the IP string represent a valid IPv6 address
2018-11-02 19:49:54 -05:00
Deepika
189889446b
Netsocket: Add required header file and namespace element instead add all
2018-10-19 11:46:55 +01:00
Sławek Piotrowski
50dd1eb950
Fix hard-fault when socket created using accept() is closed
...
When socket created using accept() is closed by calling the close()
method, "delete this" is executed which triggers the destructor call
on TCPSocket which in turn calls close() once again. Because _stack
is already 0 this results in a hard-fault.
Add a check that skips the rest of the close() method is the _stack
is already 0.
2018-10-19 11:46:55 +01:00
jeromecoutant
7759077e17
STM32 EMAC : lock deep sleep
2018-10-19 11:46:55 +01:00
Michal Paszta
8c72bd5c0b
unittests: Added tests for netsocket classes
...
New classes covered with unit tests: SocketAddress, EthernetInterface, EMACInterface, WiFiAccessPoint.
Also added missing namespace in front of mbed::Callback usages.
EMACInterface is covered by the EthernetInterface unit tests.
2018-10-19 11:46:55 +01:00
Kimmo Vaisanen
f16cdf45d9
Add missing SIM PIN configuration item
2018-10-19 11:46:55 +01:00
Steven
92cb4fe6b7
Hotfix for PR #7778
...
TB_SENSE_12 would have been left behind by the changes in #7778 . This commit implements the changes in mbed to allow targets to provide a default network interface for Silicon Labs targets.
2018-10-08 15:18:50 +01:00
Juha Ylinen
39a8d6e1bf
netsocket: Fix compiler warning
...
[Warning] InternetSocket.h@237,10: 'InternetSocket::_factory_allocated' will be initialized after [-Wreorder]
[Warning] InternetSocket.h@236,23: 'volatile unsigned int InternetSocket::_pending' [-Wreorder]
[Warning] InternetSocket.cpp@22,1: when initialized here [-Wreorder]
2018-10-08 15:18:50 +01:00
Seppo Takalo
ce1ea568f2
Fix TCPSocket::accept()
...
This one was actually always return NULL, and unsted because we only
have tests with one device.
We will add the testcase for this soon
2018-10-08 15:18:50 +01:00
Taiki
9f613512eb
Switch the IPv4 parser to the one recently introduced in libservice. Return a bool value on wether parsing of the IPv4 address string was successful
2018-10-08 15:18:50 +01:00
Juha Ylinen
5a82c8b47a
Fix TCPServer::accept()
...
Missing lock caused Mutex unlock failure
2018-09-17 21:42:55 -05:00
Martin Kojtal
44925d8527
Merge pull request #7579 from u-blox/ublox_odin_driver_os_5_v3.0.0_rc1
...
Updated ODIN drivers to v3.0.0 RC1
2018-09-03 09:25:32 +02:00
Seppo Takalo
1ef04796ee
On KW24D and NCS36510 default to smaller Nanostack configuration
...
These boards do not fit the full Nanostack, so we need to select
6LoWPAN-ND as a default.
2018-09-01 12:37:46 -05:00
Ammad Rehmat
b934632653
Access Point API
2018-08-31 11:33:30 +05:00
Seppo Takalo
c5064a8e33
Fix *MeshInterface::get_default_instance()
...
This was returning object, instead of pointer.
Also it was trying to call lowpan(reference), instad of lowpan(ptr).
2018-08-28 11:02:58 +03:00
Steven
1cfddb73b7
Fix stack size for LwIP on EFM32GG11
...
Typo in the config file made the LwIP stack way too small on EFM32GG11 STK3701 target. Additionally, the EMAC thread stack was slightly too small when debug printing is on.
2018-08-19 14:39:58 +02:00
Martin Kojtal
88a7416941
nsapi: astyle block fix
2018-08-06 09:59:08 +01:00
Martin Kojtal
b46aa6108d
netsocket: astyle fix
2018-08-03 13:34:33 +01:00
Cruz Monrreal
63f62165d8
Merge pull request #7565 from OpenNuvoton/nuc472_emac_rst
...
Nuvoton: Fix NUC472 SD-Host HW IP reset definition
2018-07-31 11:44:01 -05:00
cyliangtw
2fcbcf1789
Initialized return value of numaker_emac link-out
2018-07-31 12:01:43 +08:00
Seppo Takalo
96a90c2f2f
Allow legacy TCPServer::accept() to override inherited Socket::accept()
2018-07-24 18:06:04 +03:00
cyliangtw
7ea02d95a3
Add error handling for getting null tx buffer
2018-07-20 18:23:54 +08:00
Steven Cooreman
da377c6ed3
Add EFM32GG11 Ethernet driver
2018-07-11 18:13:04 +02:00
Cruz Monrreal
93233c4f5d
Merge pull request #7364 from 0xc0170/fix_storage_rtos
...
Fix storage rtos types - remove including internal header file
2018-07-05 14:29:46 -05:00
Tero Jääskö
2e89fa22a5
netsocket: dns: make dns-cache-size:0 remove whole DNS cache code
...
Setting ""nsapi.dns-cache-size": 0" still left some of the DNS
caching code in. Add crude #if to remove all of it.
This allows one to save 429 bytes of flash and 48 bytes of RAM on
ARMC5 builds.
2018-06-29 18:17:19 +03:00
Martin Kojtal
4d8baa7451
emac targets: fix thread cb type
2018-06-29 08:35:20 +01:00
Cruz Monrreal
cb000ceeab
Merge pull request #7336 from SeppoTakalo/fix_udp_filtering
...
Fix connected UDPSocket filtering
2018-06-28 10:06:52 -05:00
Martin Kojtal
82b490b0cf
kinetis: fix rtos storage type for thread
2018-06-28 15:11:00 +01:00
jeromecoutant
6391b7f2fa
TARGET_STM_EMAC astyle
2018-06-27 15:00:51 +02:00
Seppo Takalo
f2c0c4e248
Fix connected UDPSocket filtering
...
Was dropping all packets from connected peer
2018-06-26 17:01:19 +03:00
Seppo Takalo
1ca9ccda73
Filter incoming UDP packets based on connected peer address.
2018-06-20 12:38:07 +03:00
Seppo Takalo
e7cb4752fa
Fix small issues from the review
2018-06-20 12:38:07 +03:00
Seppo Takalo
2b60e42756
Close Doxygen group at the end of file
2018-06-20 12:38:07 +03:00
Seppo Takalo
96ef8e345d
Move string allocation to a point where get_ip_address() is called
...
This saves RAM/stack on typical socket usage where human readable
format is not exchanged so often.
2018-06-20 12:38:07 +03:00