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

Changes between Version 3 and Version 4 of SocketHelloExample

Show
Ignore:
Author:
erpe (IP: 89.247.107.255)
Timestamp:
02/15/10 23:35:15 (14 years ago)
Comment:

0.99.9 - compatible...

Legend:

Unmodified
Added
Removed
Modified
  • SocketHelloExample

    v3 v4  
    1111private import  tango.io.Console; 
    1212 
    13 private import  tango.net.SocketConduit,  
    14                 tango.net.InternetAddress
     13private import  tango.net.device.Socket,  
     14                tango.net.device.Berkeley
    1515 
    1616void main() 
    1717{ 
    1818        // make a connection request to the server 
    19         auto request = new SocketConduit
    20         request.connect (new InternetAddress ("localhost", 8080)); 
     19        auto request = new Socket
     20        request.connect (new IPv4Address ("localhost", 8080)); 
    2121        request.output.write ("hello\n"); 
    2222