发明名称 Method and apparatus for polling multiple sockets with a single thread and handling events received at the sockets with a pool of threads
摘要 A method and apparatus are provided for handling events received at a media streaming server. Server sockets configured to receive events are divided into collections and registered with a polling object. Each collection shares a processor thread for detecting events. Each socket is associated with an event consumer object that is notified when an event is received at the socket. The event consumer objects invoke task objects to handle the events. Task objects are queued in a task queue and execute using a pool of processor threads. Event consumer objects are derived from an abstract base consumer class that defines a common interface. Subclasses of the base consumer class are configured for different types of events that may be received (e.g., connection requests, media streaming commands, media data, media stream quality reports). Specific event consumer objects are instantiated from the subclasses to provide implementations of the common interface.
申请公布号 US7051337(B2) 申请公布日期 2006.05.23
申请号 US20010828052 申请日期 2001.04.06
申请人 SUN MICROSYSTEMS, INC. 发明人 SRIKANTAN GEETHA;NARASIMHAN ARAVIND;PROCTOR SETH;BRITTENSON JAN
分类号 G06F9/46;G06F13/00;G06F9/54;H04L29/06 主分类号 G06F9/46
代理机构 代理人
主权项
地址