MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / begin

Method begin

Arduino/libraries/Ethernet2/src/EthernetServer.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void EthernetServer::begin()
17{
18 for (int sock = 0; sock < MAX_SOCK_NUM; sock++) {
19 EthernetClient client(sock);
20 if (client.status() == SnSR::CLOSED) {
21 socket(sock, SnMR::TCP, _port, 0);
22 listen(sock);
23 EthernetClass::_server_port[sock] = _port;
24 break;
25 }
26 }
27}
28
29void EthernetServer::accept()
30{

Callers

nothing calls this directly

Calls 3

socketFunction · 0.50
listenFunction · 0.50
statusMethod · 0.45

Tested by

no test coverage detected