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

Changeset 2525

Show
Ignore:
Timestamp:
08/30/07 01:46:35 (1 year ago)
Author:
kris
Message:

disconnect() renamed to detach()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/conduits/FileBucket.d

    r2497 r2525  
    222222                if (file) 
    223223                   { 
    224                    file.disconnect
     224                   file.detach
    225225                   file = null; 
    226226                   map = null; 
  • trunk/example/networking/selector.d

    r2497 r2525  
    278278        } 
    279279 
    280         serverSocket.socket().disconnect
     280        serverSocket.socket().detach
    281281    } 
    282282    catch (SelectorException e) 
  • trunk/tango/io/Buffer.d

    r2499 r2525  
    12041204                 
    12051205                Remarks: 
    1206                 Close flushes & commits itself, and disconnects any  
    1207                 associated conduit.  
     1206                Close flushes & commits itself, and detaches any associated 
     1207                conduit.  
    12081208 
    12091209        ***********************************************************************/ 
     
    12151215                   flush; 
    12161216                   commit; 
    1217                    sink.conduit.disconnect;  
     1217                   sink.conduit.detach;  
    12181218                   } 
    12191219        } 
  • trunk/tango/io/Conduit.d

    r2505 r2525  
    9191        ***********************************************************************/ 
    9292 
    93         abstract void disconnect (); 
     93        abstract void detach (); 
    9494 
    9595        /*********************************************************************** 
     
    156156                 
    157157                Remarks: 
    158                 Close flushes & commits any filters before disconnecting  
    159                 the conduit 
     158                Close flushes & commits any filters before detaching the  
     159                conduit 
    160160 
    161161        ***********************************************************************/ 
     
    165165                sink.flush; 
    166166                sink.commit; 
    167                 this.disconnect
     167                this.detach
    168168        } 
    169169 
  • trunk/tango/io/DeviceConduit.d

    r2505 r2525  
    100100                ***************************************************************/ 
    101101 
    102                 override void disconnect () 
     102                override void detach () 
    103103                { 
    104104                        if (handle) 
     
    192192                ***************************************************************/ 
    193193 
    194                 override void disconnect () 
     194                override void detach () 
    195195                { 
    196196                        if (handle) 
  • trunk/tango/io/MemoryConduit.d

    r2497 r2525  
    112112        ***********************************************************************/ 
    113113 
    114         override void disconnect () {} 
     114        override void detach () {} 
    115115} 
    116116 
  • trunk/tango/io/model/IBuffer.d

    r2498 r2525  
    619619                 
    620620                Remarks: 
    621                 Close flushes & commits itself, and disconnects any  
    622                 associated conduit.  
     621                Close flushes & commits itself, and detaches any associated 
     622                conduit.  
    623623 
    624624        ***********************************************************************/ 
  • trunk/tango/io/model/IConduit.d

    r2505 r2525  
    9898        ***********************************************************************/ 
    9999 
    100         abstract void disconnect (); 
     100        abstract void detach (); 
    101101 
    102102        /*********************************************************************** 
     
    105105                 
    106106                Remarks: 
    107                 Close flushes & commits any filters before disconnecting  
    108                 the conduit 
     107                Close flushes & commits any filters before detaching the  
     108                conduit 
    109109 
    110110        ***********************************************************************/ 
  • trunk/tango/net/Socket.d

    r2520 r2525  
    720720        { 
    721721                if (this.sock) 
    722                     this.disconnect
     722                    this.detach
    723723 
    724724                if (sock is sock.init) 
     
    10211021        ***********************************************************************/ 
    10221022 
    1023         void disconnect () 
     1023        void detach () 
    10241024        { 
    10251025                if (sock != sock.init) 
  • trunk/tango/net/SocketConduit.d

    r2497 r2525  
    213213        ***********************************************************************/ 
    214214 
    215         override void disconnect () 
    216         { 
    217                 socket_.disconnect
     215        override void detach () 
     216        { 
     217                socket_.detach
    218218 
    219219                // deallocate if this came from the free-list, 
  • trunk/tango/net/cluster/tina/Cluster.d

    r2497 r2525  
    10901090                final void close () 
    10911091                { 
    1092                         conduit_.disconnect
     1092                        conduit_.detach
    10931093                } 
    10941094 
  • trunk/tango/net/cluster/tina/ClusterThread.d

    r2497 r2525  
    142142 
    143143                // make sure we close the conduit 
    144                 buffer.conduit.disconnect
     144                buffer.conduit.detach
    145145        } 
    146146} 
  • trunk/tango/net/cluster/tina/QueueFile.d

    r2505 r2525  
    146146        { 
    147147                if (conduit) 
    148                     conduit.disconnect
     148                    conduit.detach
    149149                conduit = null; 
    150150        } 
  • trunk/tango/net/ftp/FtpClient.d

    r2497 r2525  
    285285                // Shutdown the socket... 
    286286                this.socket.shutdown(SocketShutdown.BOTH); 
    287                 this.socket.disconnect(); 
     287                this.socket.detach(); 
    288288 
    289289                // Clear out everything. 
     
    492492                // Close the socket, whether we were listening or not. 
    493493                data.shutdown(SocketShutdown.BOTH); 
    494                 data.disconnect(); 
     494                data.detach(); 
    495495            } 
    496496 
     
    519519        // Close the socket.  This tells the server we're done (EOF.) 
    520520        data.shutdown(SocketShutdown.BOTH); 
    521         data.disconnect(); 
     521        data.detach(); 
    522522 
    523523        // We shouldn't get a 250 in STREAM mode. 
     
    635635                // We don't need the listener anymore. 
    636636                data.shutdown(SocketShutdown.BOTH); 
    637                 data.disconnect(); 
     637                data.detach(); 
    638638 
    639639                // This is the actual socket. 
     
    753753        scope (exit) 
    754754            { 
    755                 file.disconnect(); 
     755                file.detach(); 
    756756                delete file; 
    757757            } 
     
    900900        scope (exit) 
    901901            { 
    902                 file.disconnect(); 
     902                file.detach(); 
    903903                delete file; 
    904904            } 
  • trunk/tango/net/ftp/Telnet.d

    r2497 r2525  
    228228                        { 
    229229                                s.shutdown(SocketShutdown.BOTH); 
    230                                 s.disconnect(); 
     230                                s.detach(); 
    231231 
    232232                                delete s; 
  • trunk/tango/net/http/HttpClient.d

    r2497 r2525  
    270270                   { 
    271271                   socket.shutdown; 
    272                    socket.disconnect
     272                   socket.detach
    273273                   socket = null; 
    274274                   } 
  • trunk/tango/text/convert/Integer.d

    r2509 r2525  
    416416 
    417417                      default: 
     418                           --p; 
    418419                           break; 
    419420                      }  
  • trunk/tango/util/log/FileAppender.d

    r2497 r2525  
    143143                if (conduit_) 
    144144                   { 
    145                    conduit_.disconnect
     145                   conduit_.detach
    146146                   conduit_ = null; 
    147147                   } 
  • trunk/tango/util/log/SocketAppender.d

    r2497 r2525  
    121121        { 
    122122                if (buffer) 
    123                     buffer.conduit.disconnect
     123                    buffer.conduit.detach
    124124                buffer = null; 
    125125        }