Featured post
c - use of generic list -
struct node { void *data; struct node *link; };
given such structure call generic linked list.what use of such list in terms of real time application use.
you have service accepts requests multiple applications , provides handle each of them. service can maintain contexts per request in linked list , when done serving them delete node list. empty linked list in case mean no application has registered service.
for eg, consider service built on sip stack , multiple applications im, presence information can register service uses sip stack signalling. service maintains data pertaining each of application in linked list(well again question of design lets assume have limit serve 5 applications). sip response has redirected application sending request , hold callback pointer 1 value of node simple call once find corresponding node response.
each node saves lot of information every application , uses sending response application.
probably may want have @ this.
- Get link
- X
- Other Apps
Comments
Post a Comment