lib/socket: Simplified API for Sockets
[nit.git] / lib / mpd.nit
index cf9b677..9a56b95 100644 (file)
@@ -34,8 +34,7 @@ class MPDConnection
        do
                var p: nullable Socket = null
 
-               p = new Socket.stream_with_host(host, port)
-               p.connect
+               p = new Socket.client(host, port)
 
                sys.nanosleep(0,5000)