Changes between Version 3 and Version 4 of SocketHelloExample
- Timestamp:
- 02/15/10 23:35:15 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SocketHelloExample
v3 v4 11 11 private import tango.io.Console; 12 12 13 private import tango.net. SocketConduit,14 tango.net. InternetAddress;13 private import tango.net.device.Socket, 14 tango.net.device.Berkeley; 15 15 16 16 void main() 17 17 { 18 18 // make a connection request to the server 19 auto request = new Socket Conduit;20 request.connect (new I nternetAddress ("localhost", 8080));19 auto request = new Socket; 20 request.connect (new IPv4Address ("localhost", 8080)); 21 21 request.output.write ("hello\n"); 22 22