nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Misc AST
[nit.git]
/
lib
/
mpd.nit
diff --git
a/lib/mpd.nit
b/lib/mpd.nit
index
97c38f2
..
e814b56
100644
(file)
--- a/
lib/mpd.nit
+++ b/
lib/mpd.nit
@@
-23,7
+23,7
@@
import socket
class MPDConnection
# Socket connection to server.
class MPDConnection
# Socket connection to server.
- var socket: nullable Socket = null
+ var socket: nullable TCPStream = null
# Server hostname.
var host: String
# Server hostname.
var host: String
@@
-40,9
+40,10
@@
class MPDConnection
# Connect to the MPD server
fun connect
do
# Connect to the MPD server
fun connect
do
- var p: nullable Socket = null
+ var p: nullable TCPStream = null
- p = new Socket.client(host, port)
+ p = new TCPStream.connect(host, port)
+ assert p.connected
sys.nanosleep(0,5000)
sys.nanosleep(0,5000)