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

Changes between Version 4 and Version 5 of SocketServerExample

Show
Ignore:
Author:
erpe (IP: 89.247.60.236)
Timestamp:
02/16/10 19:10:33 (8 years ago)
Comment:

adoption to 0.99.9

Legend:

Unmodified
Added
Removed
Modified
  • SocketServerExample

    v4 v5  
    1414private import  tango.io.Console; 
    1515 
    16 private import  tango.net.ServerSocket, 
    17                 tango.net.SocketConduit; 
     16private import  tango.net.device.Socket; 
     17                 
    1818 
    1919/******************************************************************************* 
    3030        void run() 
    3131        { 
    32                 auto server = new ServerSocket (new InternetAddress(port)); 
     32                auto server = new ServerSocket (new IPv4Address(port)); 
    3333 
    3434                // wait for requests 
    4444 
    4545        // make a connection request to the server 
    46         auto request = new SocketConduit
    47         request.connect (new InternetAddress("localhost", port)); 
     46        auto request = new Socket
     47        request.connect (new IPv4Address("localhost", port)); 
    4848 
    4949        // wait for and display response (there is an optional timeout)