Stripped down version of Segundos NetService library (http://mbed.org/users/segundo/libraries/NetServices ). I have removed all NetServices, and all functions which had been disabled. Use this version when you need only pure TCP or UDP functions - this library compiles faster.

Dependencies:   lwip lwip-sys

Dependents:   christmasLights device_server pop3demo device_server_udp ... more

Embed: (wiki syntax)

« Back to documentation index

NetService Class Reference

Net Service base class. More...

#include <netservice.h>

Inherited by NetDnsRequest.

Public Member Functions

 NetService (bool owned=true)
 Instantiates a new service.
virtual void poll ()
 This method can be inherited so that it is called on each Net::poll() call.

Protected Member Functions

void close ()
 This flags the service as to be destructed if owned by the pool.

Detailed Description

Net Service base class.

Each connection-oriented object can register as service (by inheriting this class), so that it is polled regularly. It notifies the pool when the connection is terminated so that it can be destroyed.

Definition at line 39 of file netservice.h.


Constructor & Destructor Documentation

NetService ( bool  owned = true )

Instantiates a new service.

Parameters:
ownedIf true the object is owned by the pool and will be destroyed on closure.

Definition at line 30 of file netservice.cpp.


Member Function Documentation

void close (  ) [protected]

This flags the service as to be destructed if owned by the pool.

Definition at line 78 of file netservice.cpp.

void poll (  ) [virtual]

This method can be inherited so that it is called on each Net::poll() call.

Definition at line 49 of file netservice.cpp.