1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net/openssl/websocket: implement io.Writer (#8980)

This commit is contained in:
zakuro
2021-02-27 17:29:18 +09:00
committed by GitHub
parent f67bff1696
commit d0a64f2da7
7 changed files with 32 additions and 29 deletions

View File

@@ -74,11 +74,11 @@ pub fn new() FTP {
return f
}
fn (mut zftp FTP) write(data string) ? {
fn (mut zftp FTP) write(data string) ?int {
$if debug {
println('FTP.v >>> $data')
}
zftp.conn.write('$data\r\n'.bytes()) ?
return zftp.conn.write('$data\r\n'.bytes())
}
fn (mut zftp FTP) read() ?(int, string) {