Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3841

Show
Ignore:
Timestamp:
08/03/08 15:15:04 (4 months ago)
Author:
kris
Message:

fixes #1141 :: IConduit should be reexamined

Applied patch from Schveiguy. Thanks for providing that ... now you can change your ThreadConduit? :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/Conduit.d

    r3687 r3841  
    2222 
    2323        Conduit abstract base-class, implementing interface IConduit. 
    24         Only the conduit-specific read(), write(), fileHandle() and  
     24        Only the conduit-specific read(), write(), and  
    2525        bufferSize() need to be implemented for a concrete conduit  
    2626        implementation. See FileConduit for an example. 
     
    3939*******************************************************************************/ 
    4040 
    41 class Conduit : IConduit, ISelectable 
     41class Conduit : IConduit 
    4242{ 
    4343        /*********************************************************************** 
     
    5656 
    5757        abstract uint bufferSize (); 
    58  
    59         /*********************************************************************** 
    60  
    61                 Models a handle-oriented device. We need to revisit this 
    62  
    63                 TODO: figure out how to avoid exposing this in the general 
    64                 case 
    65  
    66         ***********************************************************************/ 
    67  
    68         abstract Handle fileHandle (); 
    6958 
    7059        /*********************************************************************** 
     
    459448 
    460449 
     450 
  • trunk/tango/io/DeviceConduit.d

    r3643 r3841  
    2727*******************************************************************************/ 
    2828 
    29 class DeviceConduit : Conduit 
     29class DeviceConduit : Conduit, ISelectable 
    3030{ 
    3131        /// expose in superclass definition also 
     
    9292                ***************************************************************/ 
    9393 
    94                 final override Handle fileHandle () 
     94                final Handle fileHandle () 
    9595                { 
    9696                        return cast(Handle) handle; 
     
    241241 
    242242 
     243 
  • trunk/tango/net/SocketConduit.d

    r3614 r3841  
    3030*******************************************************************************/ 
    3131 
    32 class SocketConduit : Conduit 
     32class SocketConduit : Conduit, ISelectable 
    3333{ 
    3434        private timeval                 tv; 
     
    117117        ***********************************************************************/ 
    118118 
    119         override Handle fileHandle () 
     119        Handle fileHandle () 
    120120        { 
    121121                return cast(Handle) socket_.fileHandle; 
     
    364364} 
    365365 
     366